public class ItemFitG2 extends AbstractItemFitStatistic
expectedValues, irm, minExpectedCellCount, numberOfBins, numberOfCategories, rowMargin, rowThetaSum, table, totalCount, validRow
Constructor and Description |
---|
ItemFitG2(ItemResponseModel irm,
Cut thetaCut,
int minExpectedCellCount)
This constructor is designed for the case where the number of table rows and the boundaries
are specified in thetaCut.
|
Modifier and Type | Method and Description |
---|---|
void |
compute() |
double |
getDegreesOfFreedom() |
double |
getPValue() |
double |
getThetaAt(int i) |
double |
getValue() |
void |
increment(double theta,
int itemResponse)
Increment fit statistic.
|
void |
increment(double theta,
int itemResponse,
double frequency) |
protected void |
initializeExpectedFrequencies() |
java.lang.String |
toString() |
condenseTable, getFrequencyAt, getProportionAt, getTotalCount, initialize, printContingencyTable, printMirtFormatTable
public ItemFitG2(ItemResponseModel irm, Cut thetaCut, int minExpectedCellCount)
irm
- an item response model object.thetaCut
- an object that divides the range of these into bins.minExpectedCellCount
- minimum expected value allowed in a table row.public void increment(double theta, int itemResponse)
theta
- EAP estimate of examinee abilityitemResponse
- an item response with values starting at 0. The value of teh response is also the
array index for the fit statistic.public void increment(double theta, int itemResponse, double frequency)
protected void initializeExpectedFrequencies()
public void compute()
public double getThetaAt(int i)
public double getValue()
public double getDegreesOfFreedom()
public double getPValue()
public java.lang.String toString()
toString
in class java.lang.Object