Rev 3734 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
S> ### $Id: Genetics.St,v 1.1 1999/10/13 00:50:09 saikat Exp $S> ### Analysis of the heritability data given as data set 4.5 inS> ### "SAS System for Mixed Models"S> options(contrasts = c(factor = "contr.SAS", ordered = "contr.poly"))S> formula( Genetics )Yield ~ 1 | Location/BlockS> plot( Genetics )S> fm1Gen <- lme( Yield ~ 1, data = Genetics, method = "ML",+ random = list(Location = pdCompSymm(~ Family - 1), Block = ~ 1) )S> summary( fm1Gen )Linear mixed-effects model fit by maximum likelihoodData: GeneticsAIC BIC logLik499.71 510.19 -244.86Random effects:Formula: ~ Family - 1 | LocationStructure: Compound SymmetryStdDev CorrFamily1 25.951Family2 25.951 0.61Family3 25.951 0.61 0.61Family4 25.951 0.61 0.61 0.61Family5 25.951 0.61 0.61 0.61 0.61Formula: ~ 1 | Block %in% Location(Intercept) ResidualStdDev: 9.451 7.2004Fixed effects: Yield ~ 1Value Std.Error DF t-value p-value(Intercept) 209.13 11.234 48 18.616 <.0001Standardized Within-Group Residuals:Min Q1 Med Q3 Max-1.7827 -0.50294 -0.073372 0.62515 1.3794Number of Observations: 60Number of Groups:Location Block %in% Location4 12S> summary( update( fm1Gen, method = "REML" ) )Linear mixed-effects model fit by REMLData: GeneticsAIC BIC logLik492.92 503.31 -241.46Random effects:Formula: ~ Family - 1 | LocationStructure: Compound SymmetryStdDev CorrFamily1 28.964Family2 28.964 0.687Family3 28.964 0.687 0.687Family4 28.964 0.687 0.687 0.687Family5 28.964 0.687 0.687 0.687 0.687Formula: ~ 1 | Block %in% Location(Intercept) ResidualStdDev: 9.451 7.2004Fixed effects: Yield ~ 1Value Std.Error DF t-value p-value(Intercept) 209.13 12.863 48 16.258 <.0001Standardized Within-Group Residuals:Min Q1 Med Q3 Max-1.7806 -0.51069 -0.070189 0.61932 1.3822Number of Observations: 60Number of Groups:Location Block %in% Location4 12