predict.gaussian.edgenet {netReg}R Documentation

Predict method for gaussian edgenet fits

Description

Predicts the estimated Y.hat values for a newdata design matrix X similar to the other predict methods, e.g. from glm and glmnet

Usage

## S3 method for class 'gaussian.edgenet'
predict(object, newdata = NULL, ...)

Arguments

object

a fitted object of class gaussian.edgenet

newdata

a new (m x p)-dimensional design matrix with a variable number of observations m, but a constant number of co-variables p

...

further arguments

Value

A (m x q)-dimensional matrix

Examples

## 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)

[Package netReg version 1.6.0 Index]