getEtas {oglmx}R Documentation

Construct ingredients for probability calculation.

Description

The probability of a particular outcome j for observation i is given by:

F\left(\frac{\alpha_{j+1}-x_i\beta}{g\left(z_i\delta\right)}\right)-F\left(\frac{\alpha_{j}-x_i\beta}{g\left(z_i\delta\right)}\right)

where F is the link function, the \alphas refer to threshold values and g is the function that describes the model for the variance. This function calculates the two inputs to the link function in the above expression given precalculated values of the mean of the latent variable given parameters and the standard deviation given parameters.

Usage

getEtas(thresholds,xb,std.dev)

getEtas.Exp(thresholds,xb_matrix,sd_matrix)

Arguments

thresholds

Numeric matrix of dimension (number of observations * 2). Columns refer to the right and left threshold corresponding to the desired outcome.

xb, xb_matrix

Numeric vector/matrix of expected values of the latent variable.

std.dev, sd_matrix

Numeric vector/matrix of standard deviations of the error term given variables.

Value

eta_1

Numeric vector/matrix corresponding to the right threshold.

eta_0

Numeric vector/matrix corresponding to the left threshold.

Author(s)

Nathan Carroll, nathan.carroll@ur.de

See Also

oglmx


[Package oglmx version 3.0.0.0 Index]