Functions | Variables
irt.c File Reference

A command line program to estimate items and abilities in a IRT model. More...

#include <libirt.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <getopt.h>

Functions

int parse_arg (int argc, char *argv[])
 Parse the options and arguments of the program.
int main (int argc, char *argv[])
 The main function of the program.

Variables

struct option long_options []
 The command line options.
char * file_name
 The file name.
int nbr_item
 The number of item.
int nbr_subject
 The number of subject.
int skip
 The number of line to skip.
int offset
 The number of character or field to skip.
int extra
 The number of character or field between items.
int delimited
 Enable the use of delimited format file.
char delimiter
 The delimiter.
char * true_string
 The string representing a success.
char * false_string
 The string representing a failure.
char * blank_string
 The string representing a non response.
int nbr_quad
 The number of quadrature class.
double quad_from
 The first class middle point.
double quad_to
 The last class middle point.
int model
 The model to use.
int slope_prior
 Enable the use of a prior on the slope.
int thresh_prior
 Enable the use of a prior on the threshold.
int asymp_prior
 Enable the use of a prior on the asymptote.
double slope_mean
 The mean of the prior on the slope.
double slope_dev
 The standard deviation of the prior on the slope.
double thresh_mean
 The mean of the prior on the threshold.
double thresh_dev
 The standard deviation of the prior on the threshold.
double asymp_mean
 The mean of the prior on the asymptote.
double asymp_weight
 The weight of the prior on the asymptote.
double slope_init
 The initial value of the slope.
double thresh_init
 The initial value of the threshold.
double asymp_init
 The initial value of the asymptote.
int max_em_iter
 The maximum number of EM iteration.
int max_nr_iter
 The maximum number of newton iteration.
double precision
 The precision.
int grouping
 Enable the grouping of identical patterns.
int verbose
 The verbosity level.
int ability
 Enable the estimation of the abilities.
int ability_prior
 Enable the use of EAP to estimate the abilities.
int trimming
 Enable the trimming of spaces in the fields (when delimited).
int penalized
 Enable the use of penalized maximum marginal likelihood.
int kernel
 Enable the use of kernel estimators.
double smooth_factor
 The smooth factor if PMMLE or kernel is used.
int response_functions
 Enable the display of the response functions instead of the parameters.

Detailed Description

A command line program to estimate items and abilities in a IRT model.

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

Function Documentation

int parse_arg ( int  argc,
char *  argv[] 
)

Parse the options and arguments of the program.

Also set the defaults values.

Returns
1 for success and 0 for failure.
int main ( int  argc,
char *  argv[] 
)

The main function of the program.

Variable Documentation

struct option long_options[]

The command line options.

To be used by getopt_long.

char* file_name

The file name.

int nbr_item

The number of item.

int nbr_subject

The number of subject.

int skip

The number of line to skip.

int offset

The number of character or field to skip.

int extra

The number of character or field between items.

int delimited

Enable the use of delimited format file.

char delimiter

The delimiter.

char* true_string

The string representing a success.

char* false_string

The string representing a failure.

char* blank_string

The string representing a non response.

int nbr_quad

The number of quadrature class.

double quad_from

The first class middle point.

double quad_to

The last class middle point.

int model

The model to use.

int slope_prior

Enable the use of a prior on the slope.

int thresh_prior

Enable the use of a prior on the threshold.

int asymp_prior

Enable the use of a prior on the asymptote.

double slope_mean

The mean of the prior on the slope.

double slope_dev

The standard deviation of the prior on the slope.

double thresh_mean

The mean of the prior on the threshold.

double thresh_dev

The standard deviation of the prior on the threshold.

double asymp_mean

The mean of the prior on the asymptote.

double asymp_weight

The weight of the prior on the asymptote.

double slope_init

The initial value of the slope.

double thresh_init

The initial value of the threshold.

double asymp_init

The initial value of the asymptote.

int max_em_iter

The maximum number of EM iteration.

int max_nr_iter

The maximum number of newton iteration.

double precision

The precision.

int grouping

Enable the grouping of identical patterns.

int verbose

The verbosity level.

int ability

Enable the estimation of the abilities.

int ability_prior

Enable the use of EAP to estimate the abilities.

int trimming

Enable the trimming of spaces in the fields (when delimited).

int penalized

Enable the use of penalized maximum marginal likelihood.

int kernel

Enable the use of kernel estimators.

double smooth_factor

The smooth factor if PMMLE or kernel is used.

int response_functions

Enable the display of the response functions instead of the parameters.


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