Description Usage Arguments Value Author(s) See Also Examples
Tests for effect of known missing samples on significance of regression, without incorporating phylogeny. It does so by iteratively simulating additional data until the significance of the regression changes.
1 | estimate.lm(mod.obj, est)
|
mod.obj |
Regression object made from data frame containing, data in first column and group assignment (using integers) in second column. |
est |
Number of missing taxa of the focal group (if known). This value will act as a maximum limit for iterations adding new species. |
Number of iterations (which corresponds to missing taxa to be sampled).
Bryan H. Juarez, Orlando Schwery, Giulio Valentino Dalla Riva
estimate.pgls
, estimatoR-package
1 2 3 4 5 6 | dat <- cbind(rnorm(50, 50, 125), rep(1, 50)) #Generate data 1
dat <- rbind(dat, cbind(rnorm(50, 110, 90), rep(2, 50))) #Generate data 2 and bind
colnames(dat) <- c("length", "group") #Assing column names
dat <- as.data.frame(dat)
test <- lm(dat[, 1] ~ dat [, 2]) #Run initial regression
estimate.lm(test, 200) # test running
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.