Coder Social home page Coder Social logo

drp's Introduction

DRP

R package to calculate deregressed proofs, and its reliabilities and weights.

How to Install

To install this package, use devtools:

devtools::install_github("camult/DRP")

wideDRP: Deregressing estimated breeding values - One wide format file

Description

This package is easy to use and can be helpful to calculate deregressed proofs, and their reliabilities and weights.

Usage

wideDRP(Data, animalId, sireId, damId, c = 0.5, h2, traitName = NULL,
  animalEBV, sireEBV, damEBV, animalr2, sirer2, damr2)

Arguments

Argument Description
Data It is the name of the data file
animalId It is the name of the animal's column
sireId It is the name of the sire's column
damId It is the name of the dam's column
c It is the fraction of genetic variance not explained by markers
h2 It the heritability of the trait
traitName It the name of the trait
animalEBV It is the name of the animal's EBV column
sireEBV It is the name of the sire's EBV column
damEBV It is the name of the dam's EBV column
animalr2 It is the name of the animal's accuracy column
sirer2 It is the name of the sire's accuracy column
damr2 It is the name of the dam's accuracy column

Value

A data frame with deregressed proofs, reliability and weights.

References

Garrick, D. J., J. F. Taylor, and R. L. Fernando. 2009. Deregressing estimated breeding values and weighting information for genomic regression analyses. Genet. Sel. Evol. 41:55.

Examples

 ## Not to run ##
 
 ## Example from Garrick et al., (2009)
 
 Dataset=data.frame(animal="A1000", sire="S10", dam="D100", ebv_anim=15, ebv_sire=10, ebv_dam=2,
 r2_anim=0.68, r2_sire=0.97, r2_dam=0.36, trait="Trait", c=0.5, h2=0.25)
 
 wideDRP(Data     =  Dataset,
 animalId  = "animal",
 sireId    = "sire",
 damId     = "dam",
 animalEBV = "ebv_anim",
 sireEBV   = "ebv_sire",
 damEBV    = "ebv_dam",
 animalr2  = "r2_anim",
 sirer2    = "r2_sire",
 damr2     = "r2_dam",
 traitName = "trait",
 c         =  0.5,
 h2        =  0.25)
 
 ## End(Not run)
 

DRP2files: Deregressing estimated breeding values - Two long format file

Description

This package is easy to use and can be helpful to calculate deregressed proofs, and their reliabilities and weights.

Usage

DRP2files(animalData, parentData, animalCol, sireCol, damCol, parentCol,
  ebvName, r2Name, c = 0.5, h2)

Arguments

Argument Description
animalData It is animal data file
parentData It is parents data file
animalCol It is the name of the animal's column
sireCol It is the name of the animal's dam column
damCol It is the name of the animal's dam column
parentCol It the name of the parents' column in the parents data file
ebvName It is the name of the EBV column
r2Name It is the name of the accuracy column
c It is the fraction of genetic variance not explained by markers
h2 It the heritability of the trait

Value

A data frame with deregressed proofs, reliability and weights.

References

Garrick, D. J., J. F. Taylor, and R. L. Fernando. 2009. Deregressing estimated breeding values and weighting information for genomic regression analyses. Genet. Sel. Evol. 41:55.

Examples

 ## Not to run ##
 
 ## Example from Garrick et al., (2009)
 
 animalData=data.frame(ID="Animal", sire="Sire", dam="Dam", EBV=15, r2=0.68)
 parentData=data.frame(ID=c("Sire", "Dam"), EBV=c(10, 2), r2=c(0.97, 0.36))
 
 DRP2files(animalData=animalData,
 parentData=parentData,
 animalCol = "ID",
 sireCol   = "sire",
 damCol    = "dam",
 parentCol = "ID",
 ebvName   = "EBV",
 r2Name   = "r2",
 c         = 0.5,
 h2        = 0.25)
 
 ## End(Not run)
 

drp's People

Contributors

camult avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.