library(car)
library(dae)
library(dplyr)
library(emmeans)
library(ggplot2)
library(lmerTest)
library(magrittr)
library(predictmeans)
data(DataExam6.2)
2.1 <-
DataExam6..2 %>%
DataExam6filter(Province == "PNG")
# Pg. 94
.3 <-
fm6lm(
formula = Dbh.mean ~ Replication + Family
data = DataExam6.2.1
,
)
<- anova(fm6.3)
b
<- function(x){length(x)/sum(1/x)}
HM
<- HM(DataExam6.2.1$Dbh.count)
w
<- b[["Mean Sq"]][length(b[["Mean Sq"]])]
S2
<- mean(DataExam6.2.1$Dbh.variance)
Sigma2t
<- S2-(Sigma2t/w)
sigma2m
3.1 <-
fm6.lmer(
formula = Dbh.mean ~ 1 + Replication + (1|Family)
data = DataExam6.2.1
, REML = TRUE
,
)
# Pg. 104
# summary(fm6.3.1)
varcomp(fm6.3.1)
2.5 % 97.5 %
vcov SE Family.(Intercept) 0.2584 0.1286 0.0538 0.5767
1.1667 0.1506 0.8954 1.4774
residual
<- 0.2584
sigma2f
<- (sigma2f/(0.3))/(Sigma2t + sigma2m + sigma2f)
h2
cbind(hmean = w, Sigma2t, sigma2m, sigma2f, h2)
hmean Sigma2t sigma2m sigma2f h21,] 4.408602 3.920732 0.2773606 0.2584 0.1932761
[
.4 <-
fm6lm(
formula = Dbh.mean ~ Replication+Family
data = DataExam6.2
,
)
<- anova(fm6.4)
b
<- function(x){length(x)/sum(1/x)}
HM
<- HM(DataExam6.2$Dbh.count)
w
<- b[["Mean Sq"]][length(b[["Mean Sq"]])]
S2
<- mean(DataExam6.2$Dbh.variance)
Sigma2t
<- S2-(Sigma2t/w)
sigma2m
4.1 <-
fm6.lmer(
formula = Dbh.mean ~ 1 + Replication + Province + (1|Family)
data = DataExam6.2
, REML = TRUE
,
)
# Pg. 107
varcomp(fm6.4.1)
2.5 % 97.5 %
vcov SE Family.(Intercept) 0.3514 0.1358 0.1203 0.6361
1.0951 0.1304 0.8584 1.3634
residual
<- 0.3514
sigma2f
<- (sigma2f/(0.3))/(Sigma2t+sigma2m+sigma2f)
h2
cbind(hmean = w, Sigma2t, sigma2m, sigma2f, h2)
hmean Sigma2t sigma2m sigma2f h21,] 4.451314 3.860156 0.227873 0.3514 0.2638477
[
7.1 <-
fm6.lmer(
formula = Dbh.mean ~ 1+Replication+(1|Family)
data = DataExam6.2.1
, REML = TRUE
,
)
# Pg. 116
varcomp(fm6.7.1)
2.5 % 97.5 %
vcov SE Family.(Intercept) 0.2584 0.1286 0.0538 0.5767
1.1667 0.1506 0.8954 1.4774
residual
1] <- 0.2584
sigma2f[
7.2<-
fm6.lmer(
formula = Ht.mean ~ 1 + Replication + (1|Family)
data = DataExam6.2.1
, REML = TRUE
,
)
# Pg. 116
varcomp(fm6.7.2)
2.5 % 97.5 %
vcov SE Family.(Intercept) 0.2711 0.1243 0.0743 0.5794
1.0549 0.1362 0.8097 1.3359
residual
2] <- 0.2711
sigma2f[
7.3 <-
fm6.lmer(
formula = Sum.means ~ 1 + Replication + (1|Family)
data = DataExam6.2.1
, REML = TRUE
, control = lmerControl()
,
)
# Pg. 116
varcomp(fm6.7.3)
2.5 % 97.5 %
vcov SE Family.(Intercept) 0.8729 0.3907 0.2553 1.8421
3.2428 0.4186 2.4888 4.1063
residual
3] <- 0.873
sigma2f[
<- 0.5*(sigma2f[3]-sigma2f[1]-sigma2f[2])
sigma2xy
<- sigma2xy/sqrt(sigma2f[1]*sigma2f[2])
GenCorr
cbind(
S2x = sigma2f[1]
S2y = sigma2f[2]
, S2.x.plus.y = sigma2f[3]
,
, GenCorr
)
S2x S2y S2.x.plus.y GenCorr1,] 0.2584 0.2711 0.873 0.6489119 [
6 Variance Components and Genetics Concepts
6.1 Example 6.2 (Pg. 90)
A progeny trial of Acacia mangium was planted at Segaluid, Sabah, by the Sabah Forest Research Centre in 1994. The trial was designed to test 48 open-pollinated families collected from natural provenances in Papua New Guinea (PNG, 41 families) and far north Queensland (five families) and two families of the land race that had developed in Sabah after introduction of A. mangium in the 1960s. Based on the results of many previous trials (Harwood & Williams 1992), it was expected that the Sabah and Queensland families would perform more poorly than those from PNG. The trial was set out as an RCB design with four replicates each containing 48 five-tree plots. Spacing was 3m \(\times\) 3m between trees, and an external perimeter row surrounded the trial. Diameter at breast height (dbh) and height (ht) measurements were taken in 1997, 36 months after planting.