update_estimate {cprobit}R Documentation

Inpernal function: update Step 1 estimates to obtain linear exposure effect on (transformed) outcome

Description

Inpernal function: update Step 1 estimates to obtain linear exposure effect on (transformed) outcome

Usage

update_estimate(
  y1_name,
  y2_name,
  var_names = NULL,
  dat_diff,
  res_step1,
  transform = FALSE
)

Arguments

y1_name

Name of observed outcome at observation time 1.

y2_name

Name of observed outcome at observation time 2.

var_names

Variable names for the estimates.

dat_diff

A data.frame containing the difference data.

res_step1

Results from Step 1 of the workflow.

transform

Whether the outcome should be transformed. Default is FALSE.

Value

Returns a list: a data.frame summarising the estimated linear exposure effect, the estimated standard deviation of the error terms from the difference model, the covariance matrix of the estimated exposure effects, a data.frame summarising the estimated transforamtion parameter, and the residuals.


[Package cprobit version 1.0.2 Index]