Im running TSEM at the moment and wanted to ask if someone know more about this error:
This is the model:
model_3factor <-"F1=~ BMI + FIns
F2=~ adhd_total_symp + BMI + FGlu + HbA1c
F3=~ ocs_ocd + HbA1c
F1~~F2
F1~~F3
F2~~F3
F1 ~ Gene
F2 ~ Gene
F3 ~ Gene
This is the command:
insulin_factors <- userGWAS(covstruc=LDSCoutput_TSEM,SNPs=fusion_stats, estimation = "DWLS", model = model3, printwarn = TRUE, sub=c("F1~Gene","F2~Gene"), toler = FALSE, SNPSE = FALSE, parallel = TRUE, GC="standard", smooth_check=TRUE,TWAS=TRUE)
This is the error :
Error in crossprod(wls.diff, wls.v) : non-conformable arguments
which I remember about not specifying ~SNP effects in the model.
To see if it works, I also ran commonfactorGWAS function but then I get a row error that I cannot debug where it comes from (because none of the constructs have 32 cols or rows):
Error in `$<-.data.frame`(`*tmp*`, "free", value = c(0, 0, 0, 0, 0, 0, : replacement has 24 rows, data has 32
Calls: commonfactorGWAS -> .commonfactorGWAS_main -> $<- -> $<-.data.frame
Thank you so much in advance!!
Best regards,
Izel