coef.multiview | R Documentation |
Extract coefficients from a multiview object
## S3 method for class 'multiview'
coef(object, s = NULL, ...)
object |
Fitted "multiview" object. |
s |
Value(s) of the penalty parameter lambda at which predictions are required. Default is the entire sequence used to create the model. |
... |
This is the mechanism for passing arguments like |
a matrix of coefficients for specified lambda.
# Gaussian
x = matrix(rnorm(100 * 20), 100, 20)
z = matrix(rnorm(100 * 10), 100, 10)
y = rnorm(100)
fit1 = multiview(list(x=x,z=z), y, rho = 0)
coef(fit1, s=0.1)
# Binomial
by = sample(c(0,1), 100, replace = TRUE)
fit2 = multiview(list(x=x,z=z), by, family = binomial(), rho=0.5)
coef(fit2, s=0.1)
# Poisson
py = matrix(rpois(100, exp(y)))
fit3 = multiview(list(x=x,z=z), py, family = poisson(), rho=0.5)
coef(fit3, s=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.