bamPrep: Prepare data for Bayesian Aldrich-McKelvey function

View source: R/asmcjr.r

bamPrepR Documentation

Prepare data for Bayesian Aldrich-McKelvey function

Description

Prepares data for the Bayesian Aldrich-McKelvey scaling function (BAM).

Usage

bamPrep(x, nmin=1, missing=NULL, self=1, midpt=NULL)

Arguments

x

A data.frame or matrix containing responses to issue scales to be used as input to the Aldrich-McKelvey model.

nmin

Minimum number of valid responses required to be included in the model.

missing

A vector of values that will be considered missing in addition to NA.

self

Column number containing individual self-placements.

midpt

If NULL (the default), the empirical midpoint of each issue scale is used for centering. Alternatively, you can specify a value in midpt that will be used for centering.

Value

A a list with two components:

stims

issue scale responses for the stimuli

self

Self-placements.


davidaarmstrong/asmcjr documentation built on June 29, 2024, 12:07 p.m.