On 13-Aug-02 Alexandra Patriksson wrote:> One more question... > > I need to use the Loess() function in the package modreg. What is the > argument > "formula" meant to be?Like the help page says: "a formula specifying the response and one or more numeric predictors (best specified via an interaction, but can also be specified additively)." Formula in R are typically written in the following way: y~x1^2+x1+x2 y is the response and x1 and x2 are influences in this example. For more detail see help(formula). I strongly recommend to read "An Introduction to R" which explains most basic things comprehensively and furthermore first check the help-pages before asking the list! Regards, Winfried --------------------------------------------------------------------- E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de> Date: 13-Aug-02 Dipl.-Math. Winfried Theis SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund Tel.: +49-231-755-5903 FAX: +49-231-755-4387 ---------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
One more question... I need to use the Loess() function in the package modreg. What is the argument "formula" meant to be? A -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 13 Aug 2002, Alexandra Patriksson wrote:> One more question... > > I need to use the Loess() function in the package modreg. What is the argument > "formula" meant to be?It's loess() not Loess(). ?loess answers your question, with examples. You can find many more examples in the reference on that page. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._