Displaying 1 result from an estimated 1 matches for "xnn".
Did you mean:
xen
2002 Jan 09
1
na.action in predict.lm
I would like to predict a matrix containing missing values according to a
fitted linear model.
The predicted values must have the same length as the number of
observations in newdata, where missing predicted values (due to missing
explanatory values) are replaced by NA. How can I achieve this? I tried
the following example:
> x <- matrix(rnorm(100), ncol=10)
> beta <- rep(1, 10)
>