Hello,
Firstly, thank you very much for your work on the package!
I am reaching out because I came across a problem when running my model on the cluster.
Error in userGWAS(covstruc = covstruc, SNPs = SNPs, estimation = "DWLS", :
object 'ReorderModel' not found
Calls: userGWAS -> .rearrange -> rownames -> %||% -> inspect
My model is:
model <- "F1=~ NA*ANX+MDD+PTSD
F2=~ NA*ANO+OCD+TS
F3=~ NA*ALC+CUD
F4=~ NA*BIP+SCZ
F5=~ NA*ADHD+ASD
P =~ NA*F1+F2+F3+F4+F5
F1 ~ SNP
F2 ~ SNP
F3 ~ SNP
F4 ~ SNP
F5 ~ SNP
P ~ SNP
"
sub<- c("F1~SNP","F2~SNP","F3~SNP","F4~SNP","F5~SNP","P~SNP")
parallel <- TRUE
Q_SNP <- TRUE
P_GWAS <- userGWAS(covstruc=covstruc, SNPs=SNPs, estimation = "DWLS", model=model,sub=sub,parallel=parallel,smooth_check=TRUE,Q_SNP=Q_SNP,fix_measurement=FALSE)
F1~~1*F1
F2~~1*F2
F3~~1*F3
F4~~1*F4
F5~~1*F5
P~~1*P
I would really appreciate any help that you can provide with the problem. Thank you very much.
Warm wishes,
Paris