Learn R Programming

embryogrowth (version 5.1)

tsd_MHmcmc_p: Generates set of parameters to be used with tsd_MHmcmc()

Description

Interactive script used to generate set of parameters to be used with tsd_MHmcmc().

Usage

tsd_MHmcmc_p(result = stop("An output from tsd() must be provided"),
  accept = FALSE)

Arguments

result
An object obtained after a tsd fit
accept
If TRUE, the script does not wait user information

Value

  • A matrix with the parameters

Details

tsd_MHmcmc_p generates set of parameters to be used with embryogrowth_MHmcmc()

Examples

Run this code
library(embryogrowth)
eo <- subset(STSRE_TSD, Species=="Emys orbicularis", c("Males", "Females",
                                       "Incubation.temperature"))
eo_logistic <- with(eo, tsd(males=Males, females=Females,
                                 temperatures=Incubation.temperature))
pMCMC <- tsd_MHmcmc_p(eo_logistic, accept=TRUE)

Run the code above in your browser using DataLab