Expands ordinal score data into an appropriate form, *K*-1 new binary variables for an ordinal score with *K* categories, for model fitting using `repolr`

.

1 | ```
ord.expand(space, formula, times, poly, data, subjects, categories)
``` |

`space` |
a vector indicating the category spacing when fitting the polynomial model. |

`formula` |
a formula, as for other regression models. |

`times` |
a vector of times which occur within subject clusters. |

`poly` |
a numeric variable indicating the order of the polynomial contrasts used for the cut-point model. |

`data` |
a dataframe in which to interpret the variables occurring in the formula. |

`subjects` |
a character string specifying the name of the subject variable. |

`categories` |
a numeric variable indicating the number of ordinal score categories. |

For internal use with `repolr`

.

An expanded dataframe.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.