public class RaschRatingScaleGroup
extends java.lang.Object
Constructor and Description |
---|
RaschRatingScaleGroup(java.lang.String groupId,
int nCat)
Creates a rating scael group using an ID and set number of categories.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptAllProposalValues()
After a complete iteration, the threshold values are replaced by the prposal values.
|
void |
addItem(ItemResponseModel irm,
ItemResponseSummary isum,
int position)
Called for every item on the test, this method will add any item that has the same groupId and number
of score categories.
|
void |
checkForDroppping()
Threshold parameters cannot be estimated if one or more categories do not have any observations.
|
void |
clearCounts()
Resets the category counts.
|
void |
computeCategoryStandardError(double[] theta,
int[] extremePersons)
Computes the standard error of the threshold parameters.
|
int |
dropStatus()
Status of the item with response to dropping.
|
RaschCategoryFitStatistic |
getCategoryFitAt(int index)
Gets category fit statistics for a particular category.
|
java.lang.String |
getGroupId()
A groupId uniquely identifies each item in the rating scale group.
|
java.util.Iterator<ItemResponseModel> |
getIterator()
An iterator for item response models for this group.
|
int |
getNumberOfCategories()
The number of score categories for this group is fixed.
|
int[] |
getPositions()
The columns of data for each item in the group is recorded and stored in an array.
|
double[] |
getProposalThresholds()
During each iteration of the joint maximum likelihood routine, preliminary threshold estimates are obtained.
|
byte[] |
getScoreWeights()
Each category has an associated score weight.
|
double |
getThresholdAt(int index)
Gets threshold estimates for a particular category.
|
double[] |
getThresholds()
Threshold parameters represent the point where the probability of scoring in two adjacent categories
is equal.
|
double[] |
getThresholdStandardError()
Each threshold parameter has an associated standard error.
|
double |
getThresholdStdErrorAt(int index)
Gets a specific threshold standard error.
|
void |
incrementFitStatistics(ItemResponseModel model,
double theta,
byte Xni)
Category fit statistics are incrementally updated with repeated calls to this method.
|
boolean |
isFixed() |
double |
probabilitySumAt(double theta,
int k)
Sums the probability of responding in category at position k over all items in this rating scale group.
|
void |
setProposalThresholds(double[] proposalThresholds)
Sets the array of proposal values.
|
void |
setThresholds(double[] thresholds)
Sets the array of threshold estimates.
|
double |
SpjAt(int index)
Spj is the sum of Sij over all categories.
|
java.lang.String |
toString()
Category frequency summaries are stored in this object.
|
double |
TpjAt(int index)
This count is part of the threshold update in the partial credit
and rating scale model.
|
public RaschRatingScaleGroup(java.lang.String groupId, int nCat)
groupId
- A unique identifier for the group.nCat
- number of score categories for this group.public void addItem(ItemResponseModel irm, ItemResponseSummary isum, int position)
irm
- an item response model.isum
- an item summary object.position
- column position of the item in the data array.public int[] getPositions()
public java.util.Iterator<ItemResponseModel> getIterator()
public java.lang.String getGroupId()
public int getNumberOfCategories()
public double TpjAt(int index)
index
- public double SpjAt(int index)
index
- an index of the category for which the statistic is sought.public void checkForDroppping()
public int dropStatus()
checkForDroppping()
.public void clearCounts()
JointMaximumLikelihoodEstimation.summarizeData(double)
.public double[] getThresholds()
JointMaximumLikelihoodEstimation
.
Threshold estimates are stored in an array. This method gets the stored estimates.public double getThresholdAt(int index)
index
- position of category in threshold array.public void setThresholds(double[] thresholds)
thresholds
- values of thresholds.public double[] getProposalThresholds()
JointMaximumLikelihoodEstimation.updateThresholds(RaschRatingScaleGroup)
.public void setProposalThresholds(double[] proposalThresholds)
proposalThresholds
- proposed threshold values.public void acceptAllProposalValues()
public boolean isFixed()
public byte[] getScoreWeights()
public double probabilitySumAt(double theta, int k)
theta
- person ability estimate.k
- score category for which the probabilities are summed.public void computeCategoryStandardError(double[] theta, int[] extremePersons)
theta
- array of person ability valuesextremePersons
- array of extreme person flagspublic double[] getThresholdStandardError()
computeCategoryStandardError(double[], int[])
before calling this
method. Otherwise, the returned standard errors will be zero (and will be incorrect).public double getThresholdStdErrorAt(int index)
index
- array position of the particular threshold standard error.public void incrementFitStatistics(ItemResponseModel model, double theta, byte Xni)
model
- and item response model.theta
- person ability estimate.Xni
- an observed item response.public RaschCategoryFitStatistic getCategoryFitAt(int index)
index
- array index of category fit statistics.public java.lang.String toString()
toString
in class java.lang.Object