Functions
fit_test.c File Reference

Log likelihood ratio test for goodness of fit. More...

#include "libirt.h"
#include <math.h>
#include <gsl/gsl_cdf.h>

Functions

void llk_ratio_fit_test (gsl_vector *quad_sizes, gsl_matrix *quad_freqs, gsl_vector *quad_weights, gsl_matrix *probs, int nbr_inter, gsl_vector *chi2, gsl_vector_int *df, gsl_vector *p_value)
 Compute the log likelihood ratio statistics of each items.
void llk_ratio_fit_test_mc (gsl_vector *quad_sizes, gsl_matrix *quad_freqs, gsl_vector *quad_weights, gsl_matrix *probs, gsl_vector_int *nbr_options, gsl_vector_int *items_pos, int nbr_inter, gsl_vector *chi2, gsl_vector_int *df, gsl_vector *p_value)
 Compute the log likelihood ratio statistics of each multiple choice items.

Detailed Description

Log likelihood ratio test for goodness of fit.

Author
Stephane Germain germs.nosp@m.te@g.nosp@m.mail..nosp@m.com

Function Documentation

void llk_ratio_fit_test ( gsl_vector *  quad_sizes,
gsl_matrix *  quad_freqs,
gsl_vector *  quad_weights,
gsl_matrix *  probs,
int  nbr_inter,
gsl_vector *  chi2,
gsl_vector_int *  df,
gsl_vector *  p_value 
)

Compute the log likelihood ratio statistics of each items.

Parameters
[in]quad_sizesA vector(classes) with the expected number of subjects in each class.
[in]quad_freqsA matrix(items x classes) with the expected number of subjects in the class having a success at the item.
[in]quad_weightsA vector(classes) with the normal weights of each class.
[in]probsA matrix(items x classes) with response functions.
[in]nbr_interThe number of intervals to use.
[out]chi2A vector(items+1) with the statistics of each items and for the overall fit.
[out]dfA vector(items+1) with the degrees of freedom.
[out]p_valueA vector(items+1) with the p-values.
Warning
The memory for the outputs should be allocated before.
void llk_ratio_fit_test_mc ( gsl_vector *  quad_sizes,
gsl_matrix *  quad_freqs,
gsl_vector *  quad_weights,
gsl_matrix *  probs,
gsl_vector_int *  nbr_options,
gsl_vector_int *  items_pos,
int  nbr_inter,
gsl_vector *  chi2,
gsl_vector_int *  df,
gsl_vector *  p_value 
)

Compute the log likelihood ratio statistics of each multiple choice items.

Parameters
[in]quad_sizesA vector(classes) with the expected number of subjects in each class.
[in]quad_freqsA matrix(options x classes) with the expected number of subjects in the class having a success at the option.
[in]quad_weightsA vector(classes) with the normal weights of each class.
[in]probsA matrix(options x classes) with response functions.
[in]nbr_optionsA vector(items) with the number of option of each items.
[in]items_posA vector(items) with the position of the first option of each item.
[in]nbr_interThe number of intervals to use.
[out]chi2A vector(items+1) with the statistics of each items and for the overall fit.
[out]dfA vector(items+1) with the degrees of freedom.
[out]p_valueA vector(items+1) with the p-values.
Warning
The memory for the outputs should be allocated before.

SourceForge.net Logo Generated on Sun Jan 26 2014 15:27:27 for libirt by Doxygen. Valid HTML 4.01 Transitional