I need to compute a correlation matrix of binary variables. The tetrachoric command only allows fweights, however, my dataset contains noninteger weights. Does anyone know how to proceed?
Thanks!
Thanks!
version 19 clear * quietly webuse familyvalues keep RS074 RS075 rename *, lower tetrachoric rs074 rs075 * * Begin here * gsem /// (rs074@1 <- F1, probit) /// (rs075@1 <- F2, probit), /// variance(F1@1 F2@1) /// nocnsreport nodvheader nolog lincom _b[/:cov(F1, F2)] / 2 // <= here exit
Comment