Learn R Programming

phenology (version 7.2)

summary.phenology: Print the result information from a result object.

Description

The function summary.phenology shows result and estimates confidence interval.

Usage

# S3 method for phenology
summary(object, resultmcmc = NULL, chain = 1,
  series = "all", replicate.CI.mcmc = "all", replicate.CI = 10000,
  level = 0.95, print = TRUE, ...)

Arguments

object

A result file generated by fit_phenology

resultmcmc

A mcmc object

chain

The number of chain to be used in resultmcmc

series

Names of the series to be analyzed or "all"

replicate.CI.mcmc

Number of iterations to be used or "all"

replicate.CI

Number of replicates for ML resampling

level

Level to estimate confidence interval or credibility interval

print

Should information be shown

...

Not used

Value

A list with four objects: synthesis is a data.frame with global estimate of nesting. details_MCMC, details_ML and details_mean are lists with day by day information for each series.

Details

summary.phenology prints the information from a result object.

Examples

Run this code
# NOT RUN {
library(phenology)
# Read a file with data
Gratiot<-read.delim("http://max2.ese.u-psud.fr/epc/conservation/BI/Complete.txt", header=FALSE)
data(Gratiot)
# Generate a formatted list nammed data_Gratiot 
data_Gratiot<-add_phenology(Gratiot, name="Complete", 
		reference=as.Date("2001-01-01"), format="%d/%m/%Y")
# Generate initial points for the optimisation
parg<-par_init(data_Gratiot, fixed.parameters=NULL)
# Run the optimisation
result_Gratiot<-fit_phenology(data=data_Gratiot, 
		fitted.parameters=parg, fixed.parameters=NULL)
data(result_Gratiot)
# Display information from the result
summary(result_Gratiot)
# Using mcmc
summary(result_Gratiot, resultmcmc=result_Gratiot_mcmc)
# }

Run the code above in your browser using DataLab