Example of the R code to estimate the latent class two-parameters causal model proposed in the paper
titled: Studying Enhanced Recovery After Surgery (ERAS) core items in colorectal surgery: A causal model with latent variables
List of files:
-
Example_Code_ERAS.R: code to estimate weights, to select the number of latent classes and to estimate parameters of the LC-2PL causal model
-
sim_dataERAS.Rdata: simulated data