View source: R/resampling-simdata.r
| Ex9.1 | R Documentation | 
Reproduces Example 9.1 from the book. If you specify any options, your results may look different.
Ex9.1(
  n = 100,
  p = 60,
  a = 6,
  b = 2,
  rho = 0.5,
  beta = c(1, -1, 0.5, -0.5, 0.5, -0.5),
  seed = 72,
  ...
)
| n | Sample size | 
| p | Number of features | 
| a | Number of causal ('A') variables | 
| b | Number of correlated ('B') variables | 
| rho | Correlation between 'A' and 'B' variables | 
| beta | Coefficients for causal variables | 
| seed | Random number seed for reproducibility | 
| ... | Further arguments to  | 
out <- Ex9.1()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.