Description Usage Arguments Value References Examples
View source: R/sim_pred_trace_n.R
sim_pred_trace_n
is used to sim_pred_trace_n
is
used to simulate prediction accuracy (out-of-sample MSE) with sparse linear data..
1 2 3 4 5 6 7 8 9 |
seq |
Integer sequance from minimum to maximum sample size. |
number_covariate |
Number of covariates. |
core |
Number of core to use function. |
oracle |
Logic Include oracle OLS or not |
LASSO |
Logic Include LASSO or not |
wrong |
Logic Include Wrong OLS or not |
over |
Logic Include over-parametric OLS or not |
A dataframe containing follows:
est |
Out-of-sample MSE. |
sample |
Sample size in simulation data. |
method |
Prediction method. |
No.
1 | sim <- sim_pred_trace_n(seq = c(100:150); number_covariate = 10; core = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.