drawPVs.sdf: Draw plausible values from an mml fit

View source: R/drawPVs.sdf.R

drawPVs.sdfR Documentation

Draw plausible values from an mml fit

Description

Draw plausible values from an mml fit

Usage

## S3 method for class 'sdf'
drawPVs(
  x,
  npv = 5L,
  pvVariableNameSuffix = "_dire",
  data,
  stochasticBeta = FALSE,
  construct = NULL,
  ...
)

Arguments

x

a fit from a call to mml.sdf, or a summary.mml.sdf, which is a summary of mml.sdf call.

npv

integer indicating the number of plausible values to draw

pvVariableNameSuffix

suffix to append to the name of the new plausible values

data

an edsurvey.data.frame or light.edsurvey.data.frame to which the plausible values will be added and from which the covariates and item responses will be taken to generate them

stochasticBeta

logical when TRUE the regressopm coefficients will be drawn from their posterior distribution. Can also be a data frame of values (see Details).

construct

the construct to draw PVs for

...

additional parameters


EdSurvey documentation built on June 27, 2024, 5:10 p.m.