privefl / bigsnpr

R package for the analysis of massive SNP arrays.
https://privefl.github.io/bigsnpr/
186 stars 44 forks source link

Is it possible to call `big_univLogReg` on simulated data? #504

Closed garyzhubc closed 2 months ago

garyzhubc commented 3 months ago

Is it possible to call big_univLogReg on simulated data x,y where x is a binary matrix and y is a binary vector?

> gwas <- big_univLogReg(x, y)
Error: 'X' is not of class 'FBM'.

I know that I could've done this in lm but I would like to make a test myself on bigsnpr. Thank you.

privefl commented 3 months ago

This function is from {bigstatsr}, not {bigsnpr}. You can always call as_FBM() on your matrix to transform it before using this function.