Inpernal function: update Step 1 estimates to obtain linear exposure effect on (transformed) outcome
update_estimate(
y1_name,
y2_name,
var_names = NULL,
dat_diff,
res_step1,
transform = FALSE
)
Name of observed outcome at observation time 1.
Name of observed outcome at observation time 2.
Variable names for the estimates.
A data.frame
containing the difference data.
Results from Step 1 of the workflow.
Whether the outcome should be transformed. Default is
FALSE
.
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.