View source: R/datagen_univariate.R
generate_dataset_uvt | R Documentation |
Generate Univariate Dataset
generate_dataset_uvt(n, num_stages, num_treats)
n |
Number of samples/individuals to generate |
num_stages |
Total number of stages per individual |
num_treats |
Vector of number of treatment options at each stage |
Observed data organised as a list of \{y, X, A\}
where y is a
vector of the final outcomes, X is a list of matrices of the intermediate
covariates and A is a matrix of the assigned treatments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.