Functions
ld_test.c File Reference

Log likelihood ratio test for local independance. More...

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

Functions

void llk_ratio_ld_test (gsl_matrix_int *patterns, gsl_matrix *probs, gsl_vector *quad_weights, gsl_matrix *chi2, gsl_matrix_int *df, gsl_matrix *p_value)
 Compute the log likelihood ratio statistics of each items pairs for local dependance.
void llk_ratio_ld_test_mc (gsl_matrix_int *patterns, gsl_matrix *probs, gsl_vector *quad_weights, gsl_vector_int *nbr_options, gsl_vector_int *items_pos, gsl_matrix *chi2, gsl_matrix_int *df, gsl_matrix *p_value)
 Compute the log likelihood ratio statistics of each multiple choice items pairs for local dependance.

Detailed Description

Log likelihood ratio test for local independance.

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

Function Documentation

void llk_ratio_ld_test ( gsl_matrix_int *  patterns,
gsl_matrix *  probs,
gsl_vector *  quad_weights,
gsl_matrix *  chi2,
gsl_matrix_int *  df,
gsl_matrix *  p_value 
)

Compute the log likelihood ratio statistics of each items pairs for local dependance.

Parameters
[in]patternsA matrix(subjects x items) with binary response.
[in]probsA matrix(items x classes) with response functions.
[in]quad_weightsA vector(classes) with the normal weights of each class.
[out]chi2A matrix(items x items) with the statistics of each items pairs.
[out]dfA vector(items x items) with the degrees of freedom.
[out]p_valueA matrix(items x items) with the p-values of each items pairs.
Warning
The memory for the outputs should be allocated before.
void llk_ratio_ld_test_mc ( gsl_matrix_int *  patterns,
gsl_matrix *  probs,
gsl_vector *  quad_weights,
gsl_vector_int *  nbr_options,
gsl_vector_int *  items_pos,
gsl_matrix *  chi2,
gsl_matrix_int *  df,
gsl_matrix *  p_value 
)

Compute the log likelihood ratio statistics of each multiple choice items pairs for local dependance.

Parameters
[in]patternsA matrix(subjects x items) with the responses.
[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]quad_weightsA vector(classes) with the normal weights of each class.
[out]chi2A matrix(items x items) with the statistics of each items pairs.
[out]dfA vector(items x items) with the degrees of freedom.
[out]p_valueA matrix(items x items) with the p-values of each items pairs.
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