Construct ingredients for probability calculation.
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.
getEtas(thresholds,xb,std.dev) getEtas.Exp(thresholds,xb_matrix,sd_matrix)
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. |
eta_1 |
Numeric vector/matrix corresponding to the right threshold. |
eta_0 |
Numeric vector/matrix corresponding to the left threshold. |
Nathan Carroll, nathan.carroll@ur.de
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.