Wrapper for unif_grad_simp
, but useful for optim where only update Z.
1 2 | only_Z_grad(Z, pi_vals, scale_val, lambda, alpha, Y, a_seq, b_seq, sig_diag,
likelihood = "normal", df = NULL)
|
Z |
A k by 1 matrix of numerics. The confounders. |
pi_vals |
A M vector of numerics. The mixing probs. |
scale_val |
A positive numeric. The variance inflation parameter. |
lambda |
A vector. This is a length |
alpha |
A matrix. This is of dimension |
Y |
A matrix of dimension |
a_seq |
A vector of negative numerics containing the left endpoints of the mixing uniforms. |
b_seq |
A vector of positiv numerics containing the right endpoints of the mixing uniforms. |
sig_diag |
A vector of length |
likelihood |
Can be |
df |
A positive numeric. The degrees of freedom if the likelihood is t. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.