-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model.frame method #20
Comments
How about submitting a PR adding an S3 method for |
Hi Michael, @lawremi The model.frame.DataFrame <- function(formula, ...)
{
formula <- as.data.frame(formula)
NextMethod()
} It uses the
model.frame(GNP ~ Unemployed + year2, data = as.env(test)) |
Yea, that's what I meant by using |
I'm not sure how to implement this method.
What am I missing here? |
I see. Passing a formula dispatches to Now that I look into it, since 2010 (after we made |
It seems like when using
lm
-type of functions, theDataFrame
does not behave like thedata.frame
.An example as given in therneau/survival#46:
Regards,
Marcel
The text was updated successfully, but these errors were encountered: