Implements the Step 1 of the proposed workflow, where a cprobit model is applied to analyse whether there is an increase in the outcome within each subject.
cprobit_step1(y_name, x_names, dat_diff, var_names = NULL)Name of outcome variable for Step 1.
Names of covariates for Step 1.
A data.frame containing the difference data.
Variable names for the estimates.
Returns a data.frame summarising the Step 1 estimates
(coef) and the covariance matrix for the Step 1 estimates (vcov).