Description Usage Arguments Author(s) See Also
View source: R/mouthwash_uniform_coordinate.R
Gradient wrt z of uniform_mix_llike.
1 2 3 4 5 6 7 8 9 10 11 12 13  | mouthwash_z_grad(
  pi_vals,
  z2,
  xi,
  betahat_ols,
  S_diag,
  alpha_tilde,
  a_seq,
  b_seq,
  lambda_seq,
  degrees_freedom,
  var_inflate_pen = 0
)
 | 
pi_vals | 
 A vector of non-negative numerics that sums to one. The current values of the mixing proportions.  | 
z2 | 
 A vector of numerics. The current values of the unobserved confounders.  | 
xi | 
 A positive numeric. The current value of the variance inflation factor.  | 
betahat_ols | 
 A vector of numerics. The OLS regression coefficients.  | 
S_diag | 
 A vector of positive numerics. The standard errors.  | 
alpha_tilde | 
 A matrix of numerics. The estimates of the coefficients of the confounders.  | 
a_seq | 
 A vector of numerics (usually non-positive). The lower bounds of the uniform mixing densities.  | 
b_seq | 
 A vector of numerics (usually non-negative). The upper bounds of the uniform mixing densities.  | 
lambda_seq | 
 A vector of numerics greater than 1. The penalties on the mixing proportions.  | 
degrees_freedom | 
 A positive scalar or a vector of positive
scalars the length of   | 
var_inflate_pen | 
 Not used here. Just here for compatibility
with   | 
David Gerard
uniform_mix_llike for the objective function
and mouthwash_coordinate for where this function
is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.