Description Usage Arguments Examples
Predict the latent variable in a congeneric normal-ogive model using the formula of ((arxiv ref.))
1 2 |
object |
An object of class " |
newdata |
An optional data frame with variables to predict with. The fitted values are used if omitted. |
weights |
Weights to use; choose between optimal weights and equal weights. |
... |
Ignored. |
1 2 3 4 5 6 7 | if(require("psychTools")) {
extraversion = psychTools::bfi[c("E1", "E2", "E3", "E4", "E5")]
extraversion[, "E1"] = 7 - extraversion[, "E1"] # Reverse-coded item.
extraversion[, "E2"] = 7 - extraversion[, "E2"] # Reverse-coded item.
object = conogive(extraversion)
hist(predict(object, extraversion)) # Plot distribution of predictions.
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.