yes, e.g.
require(rms)
f - ols( ) # ols is a wrapper for lm
g - Function(f)
g(age=30) # get predicted mean at age=30 and defaults for other variables
(medians modes)
Frank
Pascal Oettli-2 wrote
Hi Keith,
Do you mean as predict.lm can do?
Regards,
Pascal
Hi Keith,
Do you mean as predict.lm can do?
Regards,
Pascal
De : Keith Weintraub kw1...@gmail.com
À : r-help@r-project.org
Envoyé le : Jeudi 1 mars 2012 11h41
Objet : [R] Create a function automatically from lm formula and coefficients?
I hope the subject
2 matches
Mail list logo