Description Usage Arguments Value References

Compute the *X^2* statistic of Pearson for the goodness of fit of a CUB model for ordinal responses, where the feeling parameter
is explained via a logistic transform of the only discrete covariate. It groups ratings in
classes according to the values of the covariate.

1 | ```
chi2cub2cov(m, ordinal, covar1, covar2, pai, gama)
``` |

`m` |
Integer: number of ordinal categories |

`ordinal` |
Vector of ordinal responses |

`pai` |
Uncertainty parameter |

`gama` |
Vector of parameters for the feeling component, with length equal to 2 to account for an intercept term (first entry) |

`covar` |
Vector of the selected covariate for explaining the feeling component |

It returns the following results in a list:

`df` |
Number of degrees of freedom |

`chi2` |
Value of the Pearson fitting measure |

`dev` |
Deviance indicator |

Tutz, G. (2011). *Regression for categorical data*, Cambridge Series in Statistical
and Probabilistic Mathematics

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.