generate_par: Parameter generating function in Simulation section

View source: R/generate_par.R

generate_parR Documentation

Parameter generating function in Simulation section

Description

Parameter generating function in Simulation section

Usage

generate_par(r, pc, pd, p2, dx, dy)

Arguments

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.

Examples

## 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)

yanbowisc/SIMP documentation built on Oct. 30, 2022, 1:33 a.m.