powered by
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) )
A list with three components:
Simulated data frame.
Individual random intercepts.
Values of the nonlinear functions.
Number of subjects.
Number of covariate generates from a multivariate normal distribution.
Logical indicating whether to include grouping effect.
Vector specifying timepoints for each subject.
Logical indicating whether the nonparametric function is specific to each group.
Vector of time points to sample from.
Logical indicating whether to use cosine function for second group.
Vector of amplitudes for the nonlinear functions for each group.
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) )
Run the code above in your browser using DataLab