partial.prop.odds.ll: A function to return the log likelihood for a partial...

Description Usage Arguments Value

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

Description

This function returns the og likelihood for a partial proportional odds model. This function should not be used independently.

Usage

1
2
3
partial.prop.odds.ll(y, y.levels, in.data, int.vector,
  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).

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

The log-likelihood for the model.


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