TLIC {TLIC}R Documentation

The TLIC function is to perform a specific analysis based on the input data.

Description

The TLIC function is to perform a specific analysis based on the input data.

Usage

TLIC(X, y, alpha, K)

Arguments

X

is a design matrix

y

is a random response vector of observed values

alpha

is the significance level

K

is the number of subsets

Value

A list containing various results of the analysis

Examples

# Example usage of the TLIC function
set.seed(12)
X <- matrix(data = sample(1:3, 1200 * 5, replace = TRUE), nrow = 1200, ncol = 5)
b <- sample(1:3, 5, replace = TRUE)
e <- rnorm(1200, 0, 1)
Y <- X %*% b + e
alpha <- 0.05
K <- 10
result <- TLIC(X, Y, alpha, K)
MUopt <- result$MUopt
Bopt <- result$Bopt
MAEMUopt <- result$MAEMUopt
MSEMUopt <- result$MSEMUopt
opt <- result$opt
Yopt <- result$Yopt

[Package TLIC version 0.1 Index]