| rt_fit | R Documentation |
Marginal maximum likelihood on a theta grid, in two stages: (1) the attempt-1 ability distribution of repeaters, N(mu1, s1); (2) growth 'theta2 = theta1 + X beta + N(0, sigma_growth)' from attempt-1 responses and attempt-2 responses to **new items only**. Because exposed items never enter the growth model, preknowledge cannot inflate the expected gain, and conditioning on the full attempt-1 likelihood handles regression to the mean.
rt_fit(
data,
growth = ~log(days_between) + remediation,
grid = seq(-5, 5, by = 0.2)
)
data |
An 'rt_data' (or 'rt_sim') object. |
growth |
One-sided formula for mean growth, evaluated in 'data$persons'. |
grid |
Theta grid. |
An 'rt_fit' object.
sim <- rt_simulate(n_persons = 200, form_exposed = 20, form_new = 10, seed = 1)
fit <- rt_fit(sim)
fit # growth coefficients: intercept, log(days_between), remediation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.