Dear LCV users,
when using LCV as shown in the tutorial:
LCV = RunLCV(data[,"L2"],data[,"Z.x"],data[,"Z.y"] )
I would often get the error "NaNs produced, probably due to negative heritability estimates."
However, when providing sample sizes, I got LCV to run without errors:
LCV = RunLCV(data[,"L2"],data[,"Z.x"],data[,"Z.y"],
n.1=n.1, n.2=n.2, ldsc.intercept=0 )
Notice that ldsc.intercept is set to 0, not 1 as stated in the header of RunLCV.R
Dear LCV users,
when using LCV as shown in the tutorial:
LCV = RunLCV(data[,"L2"],data[,"Z.x"],data[,"Z.y"] )
I would often get the error "NaNs produced, probably due to negative heritability estimates."
However, when providing sample sizes, I got LCV to run without errors:
LCV = RunLCV(data[,"L2"],data[,"Z.x"],data[,"Z.y"],
n.1=n.1, n.2=n.2, ldsc.intercept=0 )
Notice that ldsc.intercept is set to 0, not 1 as stated in the header of RunLCV.R