cprobit_step1 {cprobit}R Documentation

Inpernal function: step 1 of the proposed workflow

Description

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.

Usage

cprobit_step1(y_name, x_names, dat_diff, var_names = NULL)

Arguments

y_name

Name of outcome variable for Step 1.

x_names

Names of covariates for Step 1.

dat_diff

A data.frame containing the difference data.

var_names

Variable names for the estimates.

Value

Returns a data.frame summarising the Step 1 estimates (coef) and the covariance matrix for the Step 1 estimates (vcov).


[Package cprobit version 1.0.2 Index]