Description Usage Arguments Value
View source: R/univariate_models.R
Create simulated data for a univariate ordinal model. For x, either the number of samples (N) and a parameter vector (th_x) must be given, or the full vector (x) must be given.
1 | sim_univariate_ord(th_v, mod_spec, N = NA, th_x = NA, x = NA)
|
th_v |
The ordinal parameter vector [b,tau,beta] |
mod_spec |
The model specification |
N |
The number of samples to simulate |
th_x |
The parameterization for x |
x |
The vector of independent variables |
A list object of simulated data containing x, v, and v*
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.