estimate.lm: Estimates Number of Samples Needed to Change Significance for...

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
estimate.lm(mod.obj, est)

Arguments

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.

Value

Number of iterations (which corresponds to missing taxa to be sampled).

Author(s)

Bryan H. Juarez, Orlando Schwery, Giulio Valentino Dalla Riva

See Also

estimate.pgls, estimatoR-package

Examples

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

bhjuarez/estimatoR.2016 documentation built on May 12, 2019, 8:25 p.m.