summary.phylog.lm {PHYLOGR} | R Documentation |
A 'method' for objects of class phylog.lm. Summarizes the results of the fitted linear models for the simulated (and original) data and returns p-values. There is a print 'method' for this summary.
## S3 method for class 'phylog.lm': summary(object, ...)
object |
an object of class phylog.lm returned from a previous call to lm.phylog. |
... |
further arguments passed to or from other methods (currently not used). |
The p-value is computed as the (number of simulated data sets with F-value larger than original (''real'') data + 1) / (number of simulated data sets + 1). The quantiles are obtained with the function quantile, and thus linear interpolation is used.
A list (of class summary.phylog.lm) with components
call |
the call to lm.phylog |
original.model |
the model fitted to the original data. |
original.Fvalue |
the F-values from the original data. |
p.value |
the p-values for the marginal F-tests and overall F. |
quant.F.value |
the quantiles of the distribution of F-values from the simulated data. |
num.simul |
the number of simulations used in the analyses |
Ramon Diaz-Uriarte and Theodore Garland, Jr.
Diaz-Uriarte, R., and Garland, T., Jr., in prep. PHYLOGR: an R package for the analysis of comparative data via Monte Carlo simulations and generalized least squares approaches.
data(SimulExample) ex1.lm <- lm.phylog(y ~ x1 + diet, weights=x2, max.num=20, data=SimulExample) summary(ex1.lm)