Learn R Programming

updog (version 1.2.0)

summary.mupdog: Provides some summaries from the output of mupdog.

Description

Returns mean-dosage for each individual at each SNP and the SNP-specific distribution of MAP dosages. The mean-dosage in particular might be of interest for downstream analyses.

Usage

# S3 method for mupdog
summary(object, ...)

Arguments

object

A mupdog object.

...

Not used.

Value

A list with the following elements:

  • freq A matrix with the frequency of the dosages (rows) for each SNP (columns).

  • mean_dosage The posterior mean dosage of an individual (rows) for each SNP (columns).

Examples

Run this code
# NOT RUN {
data(mupout)
msum <- summary(mupout)
msum$freq[, 1:5]
boxplot(msum$mean_dosage ~ mupout$map_dosage,
        xlab = "MAP Dosage", ylab = "Mean Dosage")

# }

Run the code above in your browser using DataLab