maximize.partial.prop.odds.ll: A function to maximize the partial proportional odds model...

Description Usage Arguments Value

View source: R/maximize.partial.prop.odds.ll.R

Description

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.

Usage

1
2
3
4
maximize.partial.prop.odds.ll(y, y.levels, in.data, int.vector,
  method = "BFGS", itnmax = NULL, x.prop.odds = NULL,
  x.non.prop.odds = NULL, beta.prop.odds = NULL,
  beta.non.prop.odds = NULL)

Arguments

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.

Value

An object from package optimx containing the maximized log likelihood and parameter estimates.


group-wine/sommelieR documentation built on May 21, 2019, 1:43 p.m.