Apologies for the typos - I was trying to edit my variable names to be more readable, but accidentally introduced typos. the correct syntax is below:
model <- "INT =~ 1*int + ext + pau
EXT =~ 1*ext + pau
SUD =~ 1*pau
INT ~~ NA*INT
EXT ~~ NA*EXT
SUD ~~ NA*SUD
INT ~~ 0*EXT
INT ~~ 0*SUD
EXT ~~ 0*SUD
int ~~ 0*int
ext ~~ 0*ext
pau ~~ 0*pau
int ~~ 0*ext
int ~~ 0*pau
ext ~~ 0*pau"
pau <- usermodel(covstruc = LDSCoutput, model = model, estimation = "DWLS",
CFIcalc = TRUE,
std.lv = TRUE, imp_cov = FALSE)
yes, int and ext are gwas indicators. I thought I could get an estimate of the residual variance of pau by freely estimating the factor variances (of the SUD factor specifically), but perhaps that is not correct?