gls.batch() actually conducts GWAS using the rapid feasible generalized least-squares approximation, under which the residual variance-covariance matrix is estimated once from a regression of the phenotype onto covariates only, and is subsequently "plugged in" for use in all subsequent single-SNP analyses. Function fgls() is called by gls.batch(), and conducts a single FGLS regression. It can be used to simultaneously estimate fixed-effects regression coefficients and the residual covariance matrix. Function gls.batch.get() is useful to restructure data, for use with fgls(). Function FSV.frompedi() creates family-structure variables based upon available information in a pedigree file. Functions gls.batch() and gls.batch.get() use these family-structure variables, which represent the type of family to which each participant belongs and how s/he fits into that family.| Package: |
| RFGLS |
| Version: |
| 1.1 |
| Date: |
| 2013/8/29 |
| Depends: |
| R (>= 2.15.0), stats, bdsmatrix, Matrix |
| License: |
| GPL (>= 2) |