Description Usage Arguments Details Value
View source: R/sim_data_types.R
This is a conditional model with a random intercept
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
data.type |
Specify the type of data you want to generate. Select one from the following: 'Binomial', 'Ordinal', 'Beta', 'Gaussian', 'NegBinom', 'ZIP', 'ZINB', 'Multinom'. This must be a character vector of length 1. |
reg.formula |
this is a regression formula to pass to the data generation; null is formula(~ Group + Time + Time*Group), |
Beta |
this is the Beta for the regression equation; numeric matrix of Beta values OR a scalar value != 0 that will be the final value of the interaction parameters, default is all(Beta == 0) for Type I error simulations |
sigma2 |
the residual error in Gaussian data |
phi |
parameter in Beta distribution |
theta |
size parameter in NB |
zip |
zero inflation parameter |
thresholds |
thresholds in ordinal data |
k |
number of categories in ordinal/nominal |
subject.var |
the subject-level variance, also known as the variance associated with the random intercept |
Select the data type you want to generate - this is best suited for
fitting data in glmmTMB()
among other R packages that are based on
the conditional model with a random intercept
returns a dataframe containing the simulated data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.