Learn R Programming

CSUV (version 0.1.1)

csuv.ci: Confidence interval-like interval for uncertainty illustration

Description

Confidence interval-like interval for uncertainty illustration

Usage

csuv.ci(csuv.fit, level, type = "original", log.level = NULL)

Arguments

csuv.fit

fitted results from CSUV::csuv()

level

significance level

type

the type of the interval. When the type is "original", all estimated coefficients are used to calculate the interval. When the type is "conditional", only non-zero estimated coefficients are used. The type "conditional.1" is still in experimental stage, please do not use. Default is "original"

log.level

log level to set. Default is NULL, which means no change in log level. See the function CSUV::set.log.level for more details

Value

a matrix. Each column represents an interval for a corresponding covariate

Examples

Run this code
# NOT RUN {
X = matrix(rnorm(1000), nrow = 100)
Y = rowSums(X[,1:3])+rnorm(100)
mod.0 = csuv(X, Y, intercept = FALSE, q = 0, method.names = NULL)
print(csuv.ci(mod.0, level = 0.1, type = "original"))
# }

Run the code above in your browser using DataLab