Description Usage Arguments Details Value Examples
Computes the second order partial derivative with respect to each of the par variables, resulting in a Hessian matrix.
1 |
par |
vector c(piA, piB, muA1, muA0, muB1, sigma), c(piA, piB/(1-piA), muA1, muA0, muB1, sigma) if trans=TRUE. |
data |
data frame containing columns y (positive outcome with zeros) and z (treatment). |
trans |
boolean signifying if piB has been transformed. |
For the input data frame, column z is the dummy variable for treatment. If z = 1, then the observation has received treatment.
If z = 0, then the observation has not received treatment.
Sometimes piB is transformed to relative proportions from absolute proportions. This transformation allows the reparameterization
of the piA and piB to allow constraint bounds between 0 and 1 in the optimization procedure.
The returned Hessian is the second order derivative with respect to θ where
θ is in the order of piA, piB, muA1, muA0, muB1, and sigma.
Hessian matrix for the latent stratification model.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.