Description Usage Arguments Value Examples
Run the model fit using function "get_BLUP" and get H2.
1 2 | get_H2(fit, numerator = "Line", denominator = data.frame(f = c("Line",
"Line:Year", "Line:Loc", "Residual"), df = c(1, 2, 2, 4)))
|
fit |
Model fit returned from get_BLUP [model]. |
numerator |
Numerator of Vg/Ve, [char]. |
denominator |
Denominator of Vg/Ve [data.table], 2nd, degree of freedom. i.e. data.frame(f=c("Line", "Line:Year", "Line:Loc", "Residual"), df=c(1, 2, 2, 4)) |
return A value of heritability.
1 2 3 4 5 6 | pheno <- read.csv("data/pheno.csv", header=T)
fit <- get_BLUP(data = df, model = Brix ~ (1|Line) + (1|Loc) + (1|Year) + (1|Line:Loc) + (1|Line:Year),
which.factor = "Line", outfile="data/blup.csv")
get_H2(fit, numerator="Line",
denominator=data.frame(f=c("Line", "Line:Year", "Line:Loc", "Residual"),
df=c(1, 2, 2, 4)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.