



Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!




Call: lm(formula = naffairs ~ age + yrsmarr)
Residuals: Min 1Q Median 3Q Max -2.6300 -1.7312 -0.9970 -0.3918 11.
Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 1.53484 0.54768 2.802 0.00524 ** age -0.04494 0.02261 -1.987 0.04733 * yrsmarr 0.16889 0.03770 4.480 8.96e-06 ***
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 3.235 on 598 degrees of freedom Multiple R-squared: 0.04124, Adjusted R-squared: 0. F-statistic: 12.86 on 2 and 598 DF, p-value: 3.396e-
Call: lm(formula = naffairs ~ age + yrsmarr)
Residuals: Min 1Q Median 3Q Max -5.1749 -2.0061 -0.8849 -0.3250 11.
Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 3.8454 1.3201 2.913 0.003716 ** age22 -3.6201 1.3494 -2.683 0.007506 ** age27 -3.3641 1.3456 -2.500 0.012686 * age32 -3.1599 1.3806 -2.289 0.022449 * age37 -3.5919 1.4362 -2.501 0.012656 * age42 -3.3833 1.4670 -2.306 0.021437 * age47 -3.6657 1.5753 -2.327 0.020304 * age52 -3.8336 1.5778 -2.430 0.015412 * age57 -5.3396 1.5818 -3.376 0.000785 *** yrsmarr 0.1330 0.0434 3.064 0.002286 **
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 3.223 on 591 degrees of freedom Multiple R-squared: 0.05951, Adjusted R-squared: 0. F-statistic: 4.155 on 9 and 591 DF, p-value: 3.264e-
model1=(lm(naffairs~ age+yrsmarr)) rhs= c(0,0,0) hm= rbind(c(0,1,0,0,0,0,0,0,0,0),c(0,0,1,0,0,0,0,0,0,0),c(0,0,0,0,0,0,0,0,1,0) ) linearHypothesis(model1,hm,rhs) Linear hypothesis test
Model 1: restricted model Model 2: naffairs ~ age + yrsmarr
Res.Df RSS Df Sum of Sq F Pr(>F) 1 594 6271. 2 591 6140.5 3 131.01 4.2032 0.005887 **