estimate_sd_error {cprobit} | R Documentation |
Inpernal function: estimate the SD of error terms in the difference model
estimate_sd_error(beta_c, y1, y2, lambda = NA, design_mat_diff)
beta_c |
Numeric vector of Step 1 estimates. |
y1 |
Numeric vector of the observed outcome at observation time 1. |
y2 |
Numeric vector of the observed outcome at observation time 2. |
lambda |
The Box-Cox transformation parameter. Default is |
design_mat_diff |
Numeric matrix of the design matrix for difference. |
Returns the estimate for sigma_delta
if lambda = NULL
,
or sigma_delta_lambda
on the transformed scale.