| responseCurve | R Documentation |
Selects samples random draws from the posterior and evaluates the item
response curve on the grid given by seq(from,to,by).
All items use the same responseNames. If you have some items
with a different number of thresholds or different response names
then you can call responseCurve for each item separately
and rbind the results together.
responseCurve(
dl,
fit,
responseNames,
item = dl$nameInfo$item,
samples = 100,
from = qnorm(0.1),
to = -from,
by = 0.02
)
dl |
a data list prepared by |
fit |
a |
responseNames |
a vector of labels for the possible responses |
item |
a vector of item names |
samples |
number of posterior samples |
from |
the starting latent difference value |
to |
the ending latent difference value |
by |
the grid increment |
A data.frame with the following columns:
Which response
Difference in worth
Which item
Which sample
Associated probability
A grouping index for independent item response samples
See cmp_probs for details.
Other data extractor:
parDistributionCustom(),
parInterval()
vignette('manual', 'pcFactorStan')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.