RRBLUP_SCA2 {AlphaSimR} R Documentation

## RR-BLUP SCA Model 2

### Description

Fits an RR-BLUP model that estimates seperate additive effects for females and males and a dominance effect. This implementation is meant for situations where RRBLUP_SCA is too slow. Note that RRBLUP_SCA2 is only faster in certain situations. Most users should use RRBLUP_SCA.

### Usage

RRBLUP_SCA2(
pop,
traits = 1,
use = "pheno",
snpChip = 1,
useQtl = FALSE,
maxIter = 10,
VuF = NULL,
VuM = NULL,
VuD = NULL,
Ve = NULL,
useEM = TRUE,
tol = 1e-06,
simParam = NULL,
...
)


### Arguments

 pop a Pop-class to serve as the training population traits an integer indicating the trait to model, a trait name, or a function of the traits returning a single value. use train model using phenotypes "pheno", genetic values "gv", estimated breeding values "ebv", breeding values "bv", or randomly "rand" snpChip an integer indicating which SNP chip genotype to use useQtl should QTL genotypes be used instead of a SNP chip. If TRUE, snpChip specifies which trait's QTL to use, and thus these QTL may not match the QTL underlying the phenotype supplied in traits. maxIter maximum number of iterations for convergence. VuF marker effect variance for females. If value is NULL, a reasonable starting point is chosen automatically. VuM marker effect variance for males. If value is NULL, a reasonable starting point is chosen automatically. VuD marker effect variance for dominance. If value is NULL, a reasonable starting point is chosen automatically. Ve error variance. If value is NULL, a reasonable starting point is chosen automatically. useEM use EM to solve variance components. If false, the initial values are considered true. tol tolerance for EM algorithm convergence simParam an object of SimParam ... additional arguments if using a function for traits

### Examples

#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=20)

#Set simulation parameters
SP = SimParam$new(founderPop) SP$addTraitA(10)
SP$setVarE(h2=0.5) SP$addSnpChip(10)

#Create population
pop = newPop(founderPop, simParam=SP)

#Run GS model and set EBV
ans = RRBLUP_SCA2(pop, simParam=SP)
pop = setEBV(pop, ans, simParam=SP)

#Evaluate accuracy
cor(gv(pop), ebv(pop))



[Package AlphaSimR version 1.4.2 Index]
{"ft_lang_label":"__label__en","ft_lang_prob":0.6689917,"math_prob":0.9863809,"size":2158,"snap":"2023-40-2023-50","text_gpt3_token_len":598,"char_repetition_ratio":0.10445683,"word_repetition_ratio":0.10144927,"special_character_ratio":0.2497683,"punctuation_ratio":0.15104167,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96889037,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-29T14:09:07Z\",\"WARC-Record-ID\":\"<urn:uuid:d4e1d777-44bb-44a9-85b2-0026ad9d9f64>\",\"Content-Length\":\"5202\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b796ad84-e0c3-4a2d-942f-7413d65dc6ce>\",\"WARC-Concurrent-To\":\"<urn:uuid:ce761cd3-73cc-4e2f-baac-fd5f4ee60aee>\",\"WARC-IP-Address\":\"137.208.57.46\",\"WARC-Target-URI\":\"https://search.r-project.org/CRAN/refmans/AlphaSimR/html/RRBLUP_SCA2.html\",\"WARC-Payload-Digest\":\"sha1:SQRNCMNGNEJQKUPQEYGZVL2QDJOMSUTL\",\"WARC-Block-Digest\":\"sha1:F5TQP3UKYOIILJLZB2QMURBISA7DUZ5L\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510516.56_warc_CC-MAIN-20230929122500-20230929152500-00291.warc.gz\"}"}