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] | patterns | A matrix(subjects x items) with binary response. |
[in] | probs | A matrix(items x classes) with response functions. |
[in] | quad_weights | A vector(classes) with the normal weights of each class. |
[out] | chi2 | A matrix(items x items) with the statistics of each items pairs. |
[out] | df | A vector(items x items) with the degrees of freedom. |
[out] | p_value | A 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] | patterns | A matrix(subjects x items) with the responses. |
[in] | probs | A matrix(options x classes) with response functions. |
[in] | nbr_options | A vector(items) with the number of option of each items. |
[in] | items_pos | A vector(items) with the position of the first option of each item. |
[in] | quad_weights | A vector(classes) with the normal weights of each class. |
[out] | chi2 | A matrix(items x items) with the statistics of each items pairs. |
[out] | df | A vector(items x items) with the degrees of freedom. |
[out] | p_value | A matrix(items x items) with the p-values of each items pairs. |
- Warning
- The memory for the outputs should be allocated before.