Description Usage Arguments Value
View source: R/maximize.partial.prop.odds.ll.R
This function attempts to maximize the partial proportional odds model log likelihood. This function is not intended to be run outside of function partial.prop.odds.mod.
1 2 3 4 |
y |
A vector of containing the values of an ordinal outcome variable. |
y.levels |
A vector of the unique, ordinal levels of y. |
in.data |
The input data object of type data frame or matrix. |
int.vector |
A vector of intercept estimates (one for each level of the outcome variable, except the top level). These need to be in the order of the levels of the outcome variable (from low to high). |
method |
A character specifying the optimization method to be used by package optimx in maximizing the log likelihood. |
itnmax |
An optional scalar specifying the iteration limit used in maximizing the log likelihood. Defaults to the default optimx value for the given method. |
x.prop.odds |
A design martrix (no intercept) for the variables assumed to have proportional odds. |
x.non.prop.odds |
A design martrix (no intercept) for the variables assumed to not have proportional odds. |
beta.prop.odds |
A vector of beta values for each predictor assumed to have proportional odds. |
beta.non.prop.odds |
A matrix of beta values for each predictor assumed to not have proportional odds, where columns are the first j-1 levels of the ordinal outcome, and rows are betas. |
An object from package optimx containing the maximized log likelihood and parameter estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.