Learn R Programming

embryogrowth (version 5.0)

predict.tsd: Estimate sex ratio according to constant incubation temperature

Description

Estimate sex ratio according to constant incubation temperature The list has the following components: $sexratio $CI.minus.sexratio $CI.plus.sexratio $range.CI if range.CI is set to NULL, the confidence interval is not estimated

Usage

## S3 method for class 'tsd':
predict(object,
  temperatures = stop("At least one temperature must be provided"),
  range.CI = 0.95, ...)

Arguments

object
A result file generated by tsd
temperatures
A vector of temperatures
range.CI
The range of confidence interval for estimation, default=0.95
...
Not used

Value

  • A list with informations about sex-ratio

Details

predict.tsd Estimate sex ratio according to constant incubation temperature

Examples

Run this code
library(embryogrowth)
m <- c(10, 14, 7, 4, 3, 0, 0)
f <- c(0, 1, 2, 4, 15, 10, 13)
t <- c(25, 26, 27, 28, 29, 30, 31)
result <- tsd(males=m, females=f, temperatures=t)
predict(result, temperatures=c(25, 31))

Run the code above in your browser using DataLab