Re: [R] Re : Create a function automatically from lm formula and coefficients?

2012-03-01 Thread Frank Harrell
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

[R] Re : Create a function automatically from lm formula and coefficients?

2012-02-29 Thread Pascal Oettli
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