Closed xiangzhu closed 6 years ago
https://github.com/stephenslab/LDshrink/blob/a8fdff30a4df3b202a9932aeb9aa4d3debc7d535/R/LDshrink.R#L10
Here the cov() seems to be the default one in R, but Nick also has a faster cov() based on C (which does not handle NA well though). We should allow people to use this faster one, if they wish and can provide input data without NA.
cov()
R
C
NA
with the latest commit, specifying na.rm=F now causes the faster cov routine to be used
na.rm=F
cov
https://github.com/stephenslab/LDshrink/blob/a8fdff30a4df3b202a9932aeb9aa4d3debc7d535/R/LDshrink.R#L10
Here the
cov()
seems to be the default one inR
, but Nick also has a fastercov()
based onC
(which does not handleNA
well though). We should allow people to use this faster one, if they wish and can provide input data withoutNA
.