| test_fit | R Documentation | 
The continuous variable of a GPT model is categorized into discrete bins to compute Pearsons X^2 between the predicted and observed bin frequencies.
test_fit(gpt_fit, breaks, bins = 6, statistic = "dn", lambda = 1)
| gpt_fit | a fitted GPT model (see  | 
| breaks | a list giving the breakpoints per category or a vector, in which case the same bounds are used for each category. By default, model-implied quantiles are used for each category. | 
| bins | number of bins used to compute model-implied boundaries/quantiles. | 
| statistic | a vector with labels of the statistic to be computed. 
 | 
| lambda | Only relevant for  | 
Dzhaparidze, K., & Nikulin, M. (1974). On a modification of the standard statistics of Pearson. Theory of Probability & Its Applications, 19(4), 851-853. https://doi.org/10.1137/1119098
Read, T. R. C., & Cressie, N. A. C. (1988). Goodness-of-fit statistics for discrete multivariate data. New York, NY: Springer.
D'Agostino, R. B., & Stephens, M. A. (1986). Goodness-of-fit techniques. New York, NY: Marcel Dekker, Inc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.