Functions
classical.c File Reference

Classical test theory. More...

#include "libirt.h"
#include <math.h>

Functions

void classical_statistics (gsl_matrix_int *patterns, gsl_vector *items_mean, gsl_vector *items_sd, gsl_vector *items_corr, gsl_vector *items_bis_corr, gsl_vector_int *items_nbr, gsl_vector *subjects_score, gsl_vector_int *subjects_nbr, int *nbr, double *mean, double *sd, double *alpha, gsl_matrix *pairs_corr)
 Compute the classical test theory statistics.
void classical_statistics_mc (gsl_matrix_int *patterns, gsl_vector *options_weights, gsl_vector_int *items_pos, gsl_vector_int *nbr_options, gsl_vector *items_mean, gsl_vector *items_sd, gsl_vector *items_corr, gsl_vector *items_poly_corr, gsl_vector_int *items_nbr, gsl_vector *subjects_score, gsl_vector_int *subjects_nbr, int *nbr, double *mean, double *sd, double *alpha, gsl_matrix *pairs_corr)
 Compute the classical test theory statistics.

Detailed Description

Classical test theory.

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

Function Documentation

void classical_statistics ( gsl_matrix_int *  patterns,
gsl_vector *  items_mean,
gsl_vector *  items_sd,
gsl_vector *  items_corr,
gsl_vector *  items_bis_corr,
gsl_vector_int *  items_nbr,
gsl_vector *  subjects_score,
gsl_vector_int *  subjects_nbr,
int *  nbr,
double *  mean,
double *  sd,
double *  alpha,
gsl_matrix *  pairs_corr 
)

Compute the classical test theory statistics.

Parameters
[in]patternsA matrix(subjects x items) with the binary patterns.
[out]items_meanA vector(items) with the means of each items.
[out]items_sdA vector(items) with the sd of each items.
[out]items_corrA vector(items) with the correlations between each items and the score of each subject without the item.
[out]items_bis_corrA vector(items) with the biserial correlations between each items and the score of each subject without the item.
[out]items_nbrA vector(items) with the number of non missing response for each items.
[out]subjects_scoreA vector(subjects) with the scores of each subjects.
[out]subjects_nbrA vector(subjects) with the number of non missing response of each subjects.
[out]nbrThe total number of non missing response.
[out]meanThe mean score.
[out]sdThe score sd.
[out]alphaThe fiability coefficient alpha.
[out]pairs_corrA matrix(items x items) of correlation for each pair of items
Warning
The memory for the outputs should be allocated before.
void classical_statistics_mc ( gsl_matrix_int *  patterns,
gsl_vector *  options_weights,
gsl_vector_int *  items_pos,
gsl_vector_int *  nbr_options,
gsl_vector *  items_mean,
gsl_vector *  items_sd,
gsl_vector *  items_corr,
gsl_vector *  items_poly_corr,
gsl_vector_int *  items_nbr,
gsl_vector *  subjects_score,
gsl_vector_int *  subjects_nbr,
int *  nbr,
double *  mean,
double *  sd,
double *  alpha,
gsl_matrix *  pairs_corr 
)

Compute the classical test theory statistics.

Parameters
[in]patternsA matrix(subjects x items) with the multiple choice patterns.
[in]options_weightsA vector(options) of weights to compute the score.
[in]items_posA vector(items) with the position of the first option of each item in patterns (and probs).
[in]nbr_optionsA vector(items) with the number of option of each item in patterns (and probs).
[out]items_meanA vector(items) with the means of each items.
[out]items_sdA vector(items) with the sd of each items.
[out]items_corrA vector(items) with the correlations between each items and the score of each subject without the item.
[out]items_poly_corrA vector(items) with the polyserial correlations between each items and the score of each subject without the item.
[out]items_nbrA vector(items) with the number of non missing response for each items.
[out]subjects_scoreA vector(subjects) with the scores of each subjects.
[out]subjects_nbrA vector(subjects) with the number of non missing response of each subjects.
[out]nbrThe total number of non missing response.
[out]meanThe mean score.
[out]sdThe score sd.
[out]alphaThe fiability coefficient alpha.
[out]pairs_corrA matrix(items x items) of correlation for each pair of items
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