privefl / bigstatsr

R package for statistical tools with big matrices stored on disk.
https://privefl.github.io/bigstatsr/
179 stars 30 forks source link

How to ensure indices of response are aligned with the genotype matrix in big_univLogReg? #169

Closed garyzhubc closed 10 months ago

garyzhubc commented 11 months ago

How to ensure indices of response are aligned with the genotype matrix in big_univLogReg?

garyzhubc commented 11 months ago

Are the indices corresponding to rows of response or the genotype matrix?

privefl commented 11 months ago

You need to match your individual genotypes (rows) with the corresponding phenotypes.

garyzhubc commented 11 months ago

So the indices are given by rows of x not rows of y? The first row of y will need to corresponds to the indeed row of x is that correct?

privefl commented 11 months ago

You can set ind.train to choose the rows of X you want to use. And then y.train needs to correspond to these indices as well.

garyzhubc commented 11 months ago

So I can use index 10 that corresponds to the first row of y and the 10-th row of X, is that right? Sent from my iPhoneOn Dec 11, 2023, at 11:48 PM, Florian Privé @.***> wrote: You can set ind.train to choose the rows of X you want to use. And then y.train needs to correspond to these indices as well.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

privefl commented 11 months ago

Seems right.