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).
Andy
> 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)
> [1] 153
> > my.lm <- lm(Day~.,data=airquality,y=TRUE)
> > length(my.lm$y)
> [1] 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
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>