Coordinate ascent algorithm for normal likelihood and mixtures of uniforms.
1 2 3 |
pi_Z |
A vector. The first |
lambda |
A vector. This is a length |
alpha |
A matrix. This is of dimension |
Y |
A p by 1 matrix of numerics. The data. |
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 the variances of |
print_ziter |
A logical. Should we we print each iteration of the Z optimization? |
newt_itermax |
A positive integer. The maximum number of Newton steps to perform in updating Z. |
tol |
A positive numeric. The stopping criterion for Newton's method in updating Z. |
var_scale |
A logical. Should we update the scaling on the
variances ( |
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.