## Not run:
# library(embryogrowth)
# eo <- subset(DatabaseTSD, Species=="Emys orbicularis", c("Males", "Females",
# "Incubation.temperature"))
# eo_logistic <- tsd(eo)
# pMCMC <- tsd_MHmcmc_p(eo_logistic, accept=TRUE)
# # Take care, it can be very long; several days
# result_mcmc_tsd <- tsd_MHmcmc(result=eo_logistic,
# parametersMCMC=pMCMC, n.iter=10000, n.chains = 1,
# n.adapt = 0, thin=1, trace=TRUE)
# # summary() permits to get rapidly the standard errors for parameters
# summary(result_mcmc_tsd)
# # They are store in the result also. Two SE are estimated using or
# # batch method or time-series SE:
# # The batch standard error procedure is usually thought to be not
# # as accurate as the time series methods.
# se1 <- result_mcmc_tsd$BatchSE
# se2 <- result_mcmc_tsd$TimeSeriesSE
# plot(result_mcmc_tsd, parameters="S", scale.prior=TRUE, xlim=c(-3, 3), las=1)
# plot(result_mcmc_tsd, parameters="P", scale.prior=TRUE, xlim=c(25, 35), las=1)
# plot(eo_logistic, se=se2)
# ## End(Not run)
Run the code above in your browser using DataLab