[R] Nnet: Returning the response
andy_liaw at merck.com
Mon Sep 20 21:53:21 CEST 2004
I don't think so. ?nnet does not mention any `y=' arugment for that purpose
(and in fact `y' is used by the default method to specify the response for
training, not as a flag for returning values).
> From: Rui Dantas
> Hello list.
> Maybe this is a simple question but I can't find the answer anywhere.
> With lm I use the parameter y=TRUE to have the response
> returned in $y. Of course, namely because of NA's in the data
> frame, this might not include all the values in the original
> column. For example:
> > data(airquality)
> > length(airquality$Day)
>  153
> > my.lm <- lm(Day~.,data=airquality,y=TRUE)
> > length(my.lm$y)
>  111
> When using nnet, is there a way to have the response returned
> in a similar way?
> Thanks in advance,
> Rui Dantas
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide!
More information about the R-help