predict.gaussian.edgenet {netReg} | R Documentation |
Predicts the estimated Y.hat values for a newdata design matrix X similar to the other predict methods, e.g. from glm and glmnet
## S3 method for class 'gaussian.edgenet' predict(object, newdata = NULL, ...)
object |
a fitted object of class gaussian.edgenet |
newdata |
a new ( |
... |
further arguments |
A (m
x q
)-dimensional matrix
## Not run: X <- matrix(rnorm(100*10),100,10) G.X <- matrix(rpois(10*10,1),10) G.X <- t(G.X) + G.X diag(G.X) <- 0 Y <- matrix(rnorm(100*10),100,10) fit <- edgenet(X=X, Y=Y, G.X=G.X, family="gaussian") pred <- predict(fit, X) ## End(Not run)