Displaying 1 result from an estimated 1 matches for "difffitpr".
Did you mean:
difffitpre
2007 Jan 18
3
selecting rows for inclusion in lm
I am having trouble selecting rows of a dataframe that will be included
in a regression. I am trying to select those rows for which the variable
Meno equals PRE. I have used the code below:
difffitPre<-lm(data[,"diff"]~data[,"Age"]+data[,"Race"],data=data[data[,"Meno"]=="PRE",])
summary(difffitPre)
The output from the summary indicates that more than 76 rows are
included in the regression:
Residual standard error: 2.828 on 76 degrees of fre...