[R] predict() function on a list made up of a system of equations

Joshua Wiley jwiley.psych at gmail.com
Mon Aug 15 05:21:14 CEST 2011


On Sun, Aug 14, 2011 at 7:55 PM, Darius H <xenon99 at hotmail.com> wrote:
>
>
>
>
>
>
>
>
>

The above whitespace comes about from posting to this list (which
converts emails to plaintext) in HTML.  Please set future emails to
plain text (its under text formatting or something like that in
hotmail).

> Hi everyone,
>
> Does anyone know how I can use the predict() function or anything similar in a various packages to forecast future values of a system of equations in a list?  I keep getting an error message when I try to use the predict function and I

Can you give an (R) example of what this system of equations in a list
is like?  Is it a list of model objects?  Or formulae?  Or character
strings of equations? Or....?  On the offchance that it is a list of
model objects, something likeish:

lapply(thelist, predict, newdata = data.frame_of_your_desired_future_values)

Cheers,

Josh

cannot find anything on the help archives. I have also tried unlist()
as to no avail. Many thanks, Darius.
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list