{smcl}
{* 3june2013}{...}
{hline}
help for {hi:raschres}{right:Jean-Benoit Hardouin}
{hline}

{title:Test of fit of the Rasch model using tests similar to RUMM based on residuals}

{p 8 14 2}{cmd:raschres} {varlist} {cmd:,} {cmdab:diff}({it:vector}) {cmdab:theta}({it:varname}) [ {cmdab:genres}({it:string}) {cmdab:genfit}({it:newvarname})
{cmdab:vargroup}({it:varname}) {cmdab:PCA:res} {cmdab:det:ails}]

{title:Description}

{p 4 8 2}{cmd:raschres} allows estimating similar tests than the RUMM software in order to test the fit of the dataset to a Rasch model, or to evaluate the 
unidimensionality of the data using a Principal Components Analysis (PCA) on the residuals. {cmd:raschres} is available only for dichotomous items.

{title:Options}

{p 4 8 2}{cmd:diff} is required and defines a (1xJ) vector of values corresponding to the estimations of the difficulty parameters

{p 4 8 2}{cmd:theta} is required and defines a variable containing the estimated values of the latent trait for each individual of the sample.

{p 4 8 2}{cmd:genres} allows creating new variables containing the residuals (one new variable per item). This option must contain a prefix which will be given to
each new variable.

{p 4 8 2}{cmd:genfit} create a new variable containing a fit index for each individual.

{p 4 8 2}{cmd:vargroup} defines a variable containing the affectation between groups of individuals in order to compute fit statistics.

{p 4 8 2} {cmd:pcares} allows providing a PCA on the residuals.

{p 4 8 2} {cmd:details} allows obtaining more detailed results.

{title:Example}

	{p 4 8 2}{cmd:. matrix diff=(-1.47,-0.97,-.23,-0.12,0.02,0.1)}{p_end}
	{p 4 8 2}{cmd:. raschres items*, diff(diff) theta(theta)}{p_end}

	{p 4 8 2}{cmd:. raschres items*, diff(diff) theta(theta) genfit(fit) genres(res)}{p_end}

	{p 4 8 2}{cmd:. raschres items*, diff(diff) theta(theta) PCA det}{p_end}



{title:Author}

{p 4 8 2}Jean-Benoit Hardouin, PhD, assistant professor{p_end}
{p 4 8 2}EA4275 "Biostatistics, Pharmacoepidemiology and Subjective Measures in Health Sciences"{p_end}
{p 4 8 2}University of Nantes - Faculty of Pharmaceutical Sciences{p_end}
{p 4 8 2}1, rue Gaston Veil - BP 53508{p_end}
{p 4 8 2}44035 Nantes Cedex 1 - FRANCE{p_end}
{p 4 8 2}Emails:
{browse "mailto:jean-benoit.hardouin@univ-nantes.fr":jean-benoit.hardouin@univ-nantes.fr}{p_end}
{p 4 8 2}Websites {browse "http://www.anaqol.org":AnaQol}
