Description Usage Arguments Value See Also
This function generates data from gen_model
, subsequently fits all the
models in fit_model
, and returns the results and/or saves them to an
external RData file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | irtree_sim1(
R = 1,
gen_model = NULL,
fit_model = gen_model,
N = NULL,
sigma = NULL,
itempar = NULL,
link = c("logit", "probit"),
na_okay = TRUE,
engine = c("mirt", "mplus", "tam"),
verbose = TRUE,
control = NULL,
improper_okay = FALSE,
par_type = "difficulty",
file = NULL,
dir = tempdir(),
save_rdata = FALSE,
reduce_output = FALSE
)
|
R |
Integer used to number the saved output if |
gen_model |
Object of class |
fit_model |
Object of class |
N |
Integer, the number of persons. |
sigma |
Either a matrix or a function that returns a matrix. This matrix
is the variance-covariance matrix of the person parameters that is passed
to |
itempar |
Either a list or a function that returns a list. The list has
an element |
link |
Character. Link function to use. |
na_okay |
Logical indicating whether variables with unobserved response
categories are permitted. If |
engine |
String specifying whether to use mirt, Mplus, or TAM for estimation. |
verbose |
Logical indicating whether output should be printed to the console. |
control |
List. The allowed elements of this list depend on the
|
improper_okay |
Logical indicating whether the model should also be fit
if it is not a proper IR-tree model. Set this only to |
par_type |
Only used if the fit engine was mirt. Item parameters (or
thresholds) can be either of type |
file |
String giving the file path used to save the output if
|
dir |
Path name that is used to save the results of every run if
|
save_rdata |
Logical indicating whether to save the results to an RData file. |
reduce_output |
Logical indicating whether the returned object should be
reduced (i.e., the output of |
List with two elements. The second element spec
contains various
arguments (such as the data). The first element fits
is a list with one
element for each fit_model
that contains the output of
fit()
as well as the elements glanced
, tidied
,
and augmented
(see glance()
, tidy()
, and augment()
).
irtree_sim()
, and the wrapped functions
fit()
and irtree_gen_data()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.