getEtas: Construct ingredients for probability calculation.

Description Usage Arguments Value Author(s) See Also

View source: R/updateComponents.R

Description

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

F((α_(j+1)-xβ)/g(zδ))-F((α_(j+1)-xβ)/g(zδ))

where F is the link function, the αs 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

1
2
3
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


oglmx documentation built on May 2, 2019, 5:14 a.m.