datduong / RECOV

Meta analysis using explicit covariance matrix
5 stars 0 forks source link

bug in line 40 - betas are selected from hard-coded size #3

Open jackhump opened 3 years ago

jackhump commented 3 years ago

https://github.com/datduong/RECOV/blob/4b4d8da204062ef79b600ff7c92e275ae890dfef/fitLlh1Gene4github.R#L40

The current line assumes the ydata has 88 columns, presumably from the dataset used in the paper.

This can be fixed by using the number of columns of the user's data instead:

betas = data4LD[,seq(1,ncol(data4LD),by=2)] ## betas only