Description Usage Arguments Value
Customized Simulation Functions, returns MSE and plots
1 2 |
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 |
A list.
mse0 |
MSE matrix for intercept terms |
mse1 |
MSE matrix for slope terms |
mse0_plot |
plot of mse0, use |
mse1_plot |
plot of mse1, use |
@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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.