Calculates the R2 of a cluster of SNPs.
1  compute.r2(x, y, res.multisplit, covar = NULL, SNP_index = NULL)

x 
The input matrix, of dimension 
y 
The response vector. It can be continuous or discrete. 
res.multisplit 
The output of 
covar 

SNP_index 

The R2 of a cluster of SNPs is computed on the second halfsamples.
The cluster members, are intersected with the SNPs selected by the lasso, and
the R2 of this model is calculated. Thus, we obtain B R2 values. Finally, the
mean of these values is taken. If the value of SNP_index
is NULL
, the R2 of the full
model with all the SNPs will be computed.
The R2 value of the SNP cluster
Buzdugan, L. et al. (2015), Assessing statistical significance in predictive genomewide association studies. (unpublished)
1 2 3 4 5 6 7 8 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.