Skip to content

na.action in model.frame

1 message · Ravi Varadhan

#
Dear Group:

I am trying to create a model frame from a formula for the model as 
follows:

formula <- y ~ x1 + x2 + x3
X <- model.frame(form=formula,data=mydata)

I have some missing values in some the variables, but I want them to be 
included in my model frame and to be indicated as "NA". Is there a way 
to do this?

thanks,
Ravi.