I am trying to predict the amount that a male with average status, income and verbal score would spend along with an appropriate 95% CI.
I used my linear model with all my variables and sex is coded as male=0 and female=1 in data set.
I think I did something wrong because I get all 47 observations but there are 19 females and 28 males.
I set up the prediction as:
> predict(mdl, sex=0, interval='confidence', level=0.90)
fit lwr upr
1 -10.6507430 -21.4372267 0.1357407
2 -9.3711318 -21.9428731 3.2006095
3 -5.4630298 -15.0782882 4.1522286
4 24.7957487 12.5630143 37.0284831...
please help...
I used my linear model with all my variables and sex is coded as male=0 and female=1 in data set.
I think I did something wrong because I get all 47 observations but there are 19 females and 28 males.
I set up the prediction as:
> predict(mdl, sex=0, interval='confidence', level=0.90)
fit lwr upr
1 -10.6507430 -21.4372267 0.1357407
2 -9.3711318 -21.9428731 3.2006095
3 -5.4630298 -15.0782882 4.1522286
4 24.7957487 12.5630143 37.0284831...
please help...