Description Usage Arguments Examples
This function prints a template of a model string to the console based on the supplied data frame. This template can be copy-pasted and modified to define an irtree_model.
1 | irtree_create_template(data = NULL, mapping_matrix = NULL, rasch = TRUE)
|
data |
Data frame. |
mapping_matrix |
Matrix of so-called pseudo-items, optional. The
observed response categories must appear in the first column. The other
columns contain the pseudo-items and each entry may be either |
rasch |
Logical. The string |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | irtree_create_template(jackson[, c(1, 6, 11)])
#> m1 <- "
#> Equations:
#> 1 = ...
#> 2 = ...
#> 3 = ...
#> 4 = ...
#> 5 = ...
#>
#> IRT:
#> ... BY E1@1, E2@1, E3@1;
#> ... BY E1@1, E2@1, E3@1;
#>
#> Class:
#> Tree
#> "
irtree_create_template(jackson[, c(1, 6, 11)],
cbind(1:5,
m = c(0, 0, 1, 0, 0),
t = c(1, 1, NA, 0, 0),
e = c(1, 0, NA, 0, 1)))
#> m1 <- "
#> Equations:
#> 1 = (1-m)*t*e
#> 2 = (1-m)*t*(1-e)
#> 3 = m
#> 4 = (1-m)*(1-t)*(1-e)
#> 5 = (1-m)*(1-t)*e
#>
#> IRT:
#> m BY E1@1, E2@1, E3@1;
#> t BY E1@1, E2@1, E3@1;
#> e BY E1@1, E2@1, E3@1;
#>
#> Class:
#> Tree
#> "
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.