Description Usage Arguments Value Examples
View source: R/sim_MOTTE_data_cross_over.R
Simulate MOTTE formated data
1 2 3 4 5 6 7 8 9 10 11 12 | sim_MOTTE_data_cross_over(
n.train = 500,
n.test = 200,
p = 10,
q = 3,
ratio = 0.5,
cov.mat = diag(p),
trt.f = c("Linear", "Polynomial", "Box"),
link.f = c("Linear", "Polynomial"),
B,
Z
)
|
n.train |
An integer value, sample size for training data |
n.test |
An integer value, sample size for testing data |
p |
An integer value, the dimensionality of covaraites (X) |
q |
An integer value, the dimensionality of responses (Y) |
ratio |
An fraction value, the ratio between treatment groups |
cov.mat |
Covariance matrix for X.b |
trt.f |
character, the name of treatment effect funciton |
link.f |
character, the name of treatment effect funciton |
B |
matrix, the coefficient matrix used in the trt.f |
Z |
matrix, the coefficient matrix used in the link.f |
A nested list that contain training data and testing data. TODO: add more introdcution to whats in the list
1 2 3 4 5 6 7 | set.seed(1)
B <- create.B(10)
Z <- create.Z(10, 3)
sim_MOTTE_data_cross_over( n.train = 500, n.test = 200,
p = 10, q = 3, ratio = 0.5,
B = B, Z = Z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.