
compar.gee(formula, data = NULL, family = "gaussian", phy,
scale.fix = FALSE, scale.value = 1)
formula
are to be found; by default, the variables are looked
for in the global environment.?family
for details on specifying
the distribution, and on changing the link funct"phylo"
.scale.fix = TRUE
, gives the value for the
scale (default: scale.value = 1
).data
and that
data frame has rownames, then its values are matched to the tip labels
of phy
, otherwise its values are taken to be in the same order
than the tip labels of phy
.
If data = NULL
, then it is assumed that the variables are in
the same order than the tip labels of phy
.read.tree
, pic
, compar.lynch
### The example in Phylip 3.5c (originally from Lynch 1991)
### (the same analysis than in help(pic)...)
cat("((((Homo:0.21,Pongo:0.21):0.28,",
"Macaca:0.49):0.13,Ateles:0.62):0.38,Galago:1.00);",
file = "ex.tre", sep = "")
tree.primates <- read.tree("ex.tre")
X <- c(4.09434, 3.61092, 2.37024, 2.02815, -1.46968)
Y <- c(4.74493, 3.33220, 3.36730, 2.89037, 2.30259)
### Both regressions... the results are quite close to those obtained
### with pic().
compar.gee(X ~ Y, phy = tree.primates)
compar.gee(Y ~ X, phy = tree.primates)
### Now do the GEE regressions through the origin: the results are quite
### different!
compar.gee(X ~ Y - 1, phy = tree.primates)
compar.gee(Y ~ X - 1, phy = tree.primates)
unlink("ex.tre") # delete the file "ex.tre"
Run the code above in your browser using DataLab