| compare_max_sdt | R Documentation |
Performs a chi-squared difference test comparing a less constrained (free) MAX SDT model to a more constrained (nested) model. Both models must be fitted to the same data.
compare_max_sdt(free, constrained)
free |
A |
constrained |
A |
The chi-squared difference statistic is:
\Delta\chi^2 = \chi^2_{\text{constrained}} - \chi^2_{\text{free}}
with degrees of freedom equal to the difference in the number of free parameters. A significant result indicates that the constraint worsens fit. The fits must use identical counts and lineup sizes, must have converged, and the constrained model must impose every constraint in the free model plus at least one additional constraint.
An object of class "max_sdt_compare" with the test result.
fit_max_sdt
# Each two-condition fit takes a few seconds
fit_free <- fit_max_sdt(
n_hit=69, n_tp_choose=82, n_fa=64, N_tp=96, N_ta=106,
n_hit_2=68, n_tp_choose_2=78, n_fa_2=42, N_tp_2=96, N_ta_2=96
)
fit_eqd <- fit_max_sdt(
n_hit=69, n_tp_choose=82, n_fa=64, N_tp=96, N_ta=106,
n_hit_2=68, n_tp_choose_2=78, n_fa_2=42, N_tp_2=96, N_ta_2=96,
constrain_d = TRUE
)
compare_max_sdt(fit_free, fit_eqd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.