estimate_sd_error {cprobit}R Documentation

Inpernal function: estimate the SD of error terms in the difference model

Description

Inpernal function: estimate the SD of error terms in the difference model

Usage

estimate_sd_error(beta_c, y1, y2, lambda = NA, design_mat_diff)

Arguments

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 NA, indicating no need for a transformation. See Details.

design_mat_diff

Numeric matrix of the design matrix for difference.

Value

Returns the estimate for sigma_delta if lambda = NULL, or sigma_delta_lambda on the transformed scale.


[Package cprobit version 1.0.2 Index]