View source: R/create-simulations.R
simulate_group_inter | R Documentation |
Simulate a partial linear semiparametric mixed-effects model.
simulate_group_inter(
N = 50,
n_mvnorm = 100,
grouped = TRUE,
timepoints = 3:5,
nonpara_inter = TRUE,
sample_from,
cos = FALSE,
A_vec = c(1, 1.5)
)
N |
Number of subjects. |
n_mvnorm |
Number of covariate generates from a multivariate normal distribution. |
grouped |
Logical indicating whether to include grouping effect. |
timepoints |
Vector specifying timepoints for each subject. |
nonpara_inter |
Logical indicating whether the nonparametric function is specific to each group. |
sample_from |
Vector of time points to sample from. |
cos |
Logical indicating whether to use cosine function for second group. |
A_vec |
Vector of amplitudes for the nonlinear functions for each group. |
A list with three components:
sim |
Simulated data frame. |
phi |
Individual random intercepts. |
f_val |
Values of the nonlinear functions. |
simulate_group_inter(
N = 50, n_mvnorm = 100, grouped = TRUE,
timepoints = 3:5, nonpara_inter = TRUE,
sample_from = seq(0, 10, by = 0.1), cos = FALSE, A_vec = c(1, 1.5)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.