Hi,
Firstly, thank you very much for the great package, I practice a lot with it!
I came across a problem with the mediation, this is my model:
model_med<-'GLAUCOMA=~NA*VCDR_UCL + start(0.7)*POAG_UCL + a*VCDR_UCL
ANATOMY=~NA*VCDR_UCL + b*VCDR_UCL
a>0.2
b>0.4
GLAUCOMA~c*SNP
ANATOMY~d*SNP
M_GLAUCOMA:=a*c
M_ANATOMY:=b*d
ANATOMY~~1*ANATOMY
GLAUCOMA~~1*GLAUCOMA
GLAUCOMA~~0*ANATOMY
POAG_UCL~~0*VCDR_UCL
POAG_UCL~~0*POAG_UCL
VCDR_UCL~~0*VCDR_UCL
SNP~~SNP
'
outputGWAS <-userGWAS(covstruc=LDSCoutput, SNPs=p_sumstats1,model=model_med,estimation = "DWLS",sub = c("GLAUCOMA~SNP","ANATOMY~SNP","M_GLAUCOMA:=a*c","M_ANATOMY:=b*d"), parallel=TRUE)
I can run this in my laptop, with GenomicSEM version 0.0.3. However, when I use GenomiSEM 0.0.5. I had error message:
" Error in userGWAS(covstruc = LDSCoutput, SNPs = p_sumstats1, model = model_med, :
object 'ReorderModelnoSNP' not found"...
Please can someone help me with this problem?
Best wishes,