powered by
Extracts pooled coefficients. (The meta learners weights the coefficients from the base learners.)
# S3 method for starnet coef(object, nzero = NULL, ...)
starnet object
maximum number of non-zero coefficients: positive integer, or NULL
NULL
further arguments (not applicable)
List of scalar alpha and vector beta, containing the pooled intercept and the pooled slopes, respectively.
alpha
beta
# NOT RUN { set.seed(1) n <- 50; p <- 100 y <- rnorm(n=n) X <- matrix(rnorm(n*p),nrow=n,ncol=p) object <- starnet(y=y,X=X) coef <- coef(object) # }
Run the code above in your browser using DataLab