Stephen Liu wrote:
----- Original Message ----
From: "Liaw, Andy" <andy_l...@merck.com>
To: Stephen Liu <sati...@yahoo.com>; r-help@r-project.org
Sent: Mon, August 16, 2010 8:22:33 PM
Subject: RE: [R] Learning ANOVA
- snip -
Well-written model fitting functions should be called like this:
modelfn(var1 ~ var2 + var3, data=df, ...)
Hi Andy,
Thanks for your advice.
modelfn(count ~ spray, data=test01)
Error: could not find function "modelfn"
What will be +var3 ?
This is just a generic example. modelfn can be any modeling
function, e.g., lm, glm, gam, etc.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.