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 says it all. I want to be able to use an lm object and the associated coefficients to create function that can produce "expected" "y" values given inputs. Thanks, KW -- [[alternative HTML version deleted]] ______________________________________________ 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. ______________________________________________ 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.