imputation.maf {snpMatrix} | R Documentation

## Extract MAF and R-squared values from imputation rules

### Description

These functions extract key characteristics of regression-based imputation rules stored as an object of class `"snp.reg.imputation"`. `imputation.maf` extracts the minor allele frequencies of the imputed SNPs and `imputation.r2` extracts the prediction R^2.

### Usage

    imputation.maf(rules)
    imputation.r2(rules)

### Arguments

`rules` | An object of class `"snp.reg.imputation"`

### Value

A numeric vector containing the extracted values

### Author(s)

David Clayton david.clayton@cimr.cam.ac.uk

### See Also

`snp.reg.imputation-class`, `snp.imputation`

### Examples

    # These functions are currently defined as
    function (rules) sapply(rules, function(x) x$maf)
    function (rules) sapply(rules, function(x) x$r2)

[Package snpMatrix version 1.6.1 Index]