Data Structures | Functions
wmle_ability.c File Reference

Warm's Weighted Maximum Likelihood of the abilities. More...

#include "libirt.h"
#include <math.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_roots.h>

Data Structures

struct  wmle_ability_struct
 Used to passed extra parameter to wmle_ability_fdfdf2. More...

Functions

void wmle_ability_fdfdf2 (double ability, void *params, double *f, double *df, double *df2)
 Compute the log weighted likelihood, gradient and Hessian of the pattern.
double wmle_ability_f (double ability, void *params)
 Compute the log weighted likelihood of the pattern.
double wmle_ability_df (double ability, void *params)
 Compute the log weighted likelihood gradient of the pattern.
double wmle_ability_df2 (double ability, void *params)
 Compute the log weighted likelihood Hessian of the pattern.
void wmle_ability_dfdf2 (double ability, void *params, double *df, double *df2)
 Compute the log weighted likelihood gradient and Hessian of the pattern.
int wmle_abilities (int max_iter, double prec, gsl_matrix *like, gsl_vector *info, gsl_vector *quad_points, gsl_vector *abilities, gsl_vector *abilities_stddev)
 Compute the WMLE of the abilities.

Detailed Description

Warm's Weighted Maximum Likelihood of the abilities.

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

Function Documentation

void wmle_ability_fdfdf2 ( double  ability,
void *  params,
double *  f,
double *  df,
double *  df2 
)

Compute the log weighted likelihood, gradient and Hessian of the pattern.

Parameters
[in]abilityThe ability level.
[in]paramsThe extra parameter to passes to the function.
[out]fThe log weighted likelihood.
[out]dfThe gradient of the log weighted likelihood.
[out]df2The Hessian of the log weighted likelihood.

This function is not used directly by the root finding functions, but by others functions that comply with the gsl.

double wmle_ability_f ( double  ability,
void *  params 
)

Compute the log weighted likelihood of the pattern.

Parameters
[in]abilityThe ability level.
[in]paramsThe extra parameter to passes to the function.

This function is just a wrapper around wmle_ability_fdfdf2 to be used by the root finding functions in the gsl.

Returns
The log weighted likelihood.
double wmle_ability_df ( double  ability,
void *  params 
)

Compute the log weighted likelihood gradient of the pattern.

Parameters
[in]abilityThe ability level.
[in]paramsThe extra parameter to passes to the function.

This function is just a wrapper around wmle_ability_fdfdf2 to be used by the root finding functions in the gsl.

Returns
The log weighted likelihood gradient.
double wmle_ability_df2 ( double  ability,
void *  params 
)

Compute the log weighted likelihood Hessian of the pattern.

Parameters
[in]abilityThe ability level.
[in]paramsThe extra parameter to passes to the function.

This function is just a wrapper around wmle_ability_fdfdf2 to be used by the root finding functions in the gsl.

Returns
The log weighted likelihood Hessian.
void wmle_ability_dfdf2 ( double  ability,
void *  params,
double *  df,
double *  df2 
)

Compute the log weighted likelihood gradient and Hessian of the pattern.

Parameters
[in]abilityThe ability level.
[in]paramsThe extra parameter to passes to the function.
[out]dfThe gradient of the log weighted likelihood.
[out]df2The Hessian of the log weighted likelihood.

This function is just a wrapper around wmle_ability_fdfdf2 to be used by the root finding functions in the gsl.

int wmle_abilities ( int  max_iter,
double  prec,
gsl_matrix *  like,
gsl_vector *  info,
gsl_vector *  quad_points,
gsl_vector *  abilities,
gsl_vector *  abilities_stddev 
)

Compute the WMLE of the abilities.

Parameters
[in]max_iterThe maximum number of Newton iterations performed for each pattern.
[in]precThe desired precision of each parameter estimate.
[in]likeA matrix (patterns x classes) of likelihood functions.
[in]infoA vecor (classes) with the test information function.
[in]quad_pointsA vector(classes) with the middle points of each class.
[out]abilitiesA vector(patterns) with the estimated abilities.
[out]abilities_stddevA vector(items) with the standard errors of the estimated abilities.
Warning
The memory for abilities and abilities_stddev 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