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]]


