predict.conogive {conogive}R Documentation

Predict Method for Conogive Objects

Description

Predict the latent variable in a congeneric normal-ogive model using the formula of ((arxiv ref.))

Usage

## S3 method for class 'conogive'
predict(object, newdata, weights = c("optimal", "equal"), ...)

Arguments

object

An object of class "conogive".

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.

Examples

 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.
 }

[Package conogive version 1.0.0 Index]