| generate_par | R Documentation |
Parameter generating function in Simulation section
generate_par(r, pc, pd, p2, dx, dy)
r |
Dimension of response Y. |
pc |
Dimension of X1C, the continuous part of the predictors of interest. |
pd |
Dimension of X1D, the discrete part of the predictors of interest. |
p2 |
Dimension of X2, predictors of not main interest. |
dx |
Partial predictor envelope dimension of SIMP. |
dy |
Partial response envelope dimension of SIMP. |
## Not run:
r <- 8
pc <- 8
pd <- 2
p2 <- 2
p = pc + pd + p2
K <- 3
mu2 <- c(2, 5)
dx.tru <- 6
dy.tru <- 2
n <- 300
set.seed(2)
if (p2 > 0){
SigmaX2 <- rinvwish(p2, diag(1, p2), p2)
}else{
SigmaX2 <- 0
}
all_pars <- generate_par(r, pc, pd, p2, dx.tru, dy.tru)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.