Learn R Programming

PHYLOGR (version 1.0.11)

summary.phylog.lm: Summarize a phylog.lm object

Description

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.

Usage

# S3 method for phylog.lm
summary(object, ...)

Arguments

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).

Value

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

Details

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.

References

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.

See Also

lm.phylog, plot.phylog.lm

Examples

Run this code
# NOT RUN {
data(SimulExample)
ex1.lm <- lm.phylog(y ~ x1 + diet, weights=x2, max.num=20, data=SimulExample)
summary(ex1.lm)
# }

Run the code above in your browser using DataLab