demoIboss: Customized Simulation Functions, returns MSE and plots

Description Usage Arguments Value

View source: R/demo.R

Description

Customized Simulation Functions, returns MSE and plots

Usage

1
2
demoIboss(case = NULL, n = NULL, k = NULL, p = NULL, rept = NULL,
  compare = F)

Arguments

case

integer. Choose distribution of predictors.

n

integer. Full sample size, can be either scalar or vector.

k

integer. Subsample size, can be either scalar or vector.

p

integer. Number of predictors.

rept

integer. Repetition times.

compare

logical. Default is TRUE. If TURE, returns table of MSEs comparing IBOSS to FULL, UNI, and LEV methods, plots will be drawn. At least one of n and k has to be integer. IF false, return IBOSS result only. No restrictions on n and k.

Value

A list.

mse0

MSE matrix for intercept terms

mse1

MSE matrix for slope terms

mse0_plot

plot of mse0, use plot(mse0_plot) to display

mse1_plot

plot of mse1, use plot(mse1_plot) to display

@examples ## Not run: # For normal predictor simulations # fixed k, varing n ---- IBOSS::demoIboss(case = 1, n = c(5000, 10^4, 10^5, 10^6), k = 1000, p = 50, rept = 1000, compare = T) # fixed n, varing k ---- IBOSS::demoIboss(case = 1, n = c(10^6), k = c(200, 400, 500, 1000, 2000, 3000, 5000), p = 50, rept = 1000, compare = T) ## End(Not run)


shuaih0303/IBOSS documentation built on Nov. 17, 2019, 2:55 a.m.