Learn R Programming

paleoTS (version 0.5-1)

modelCurves: Function computes model expectations and 95

Description

This function is used by plot.paleoTS to add the model expectations and probability intervals for (some) models. It is not likely to be called directly by the user.

Usage

modelCurves(x, w, np = 500)

Arguments

x

a paleoTS object

w

fitted model results in the form of a paleoTSfit object

np

the number of points to use for plotting the expectation

Value

A list with the following vectors: tt, the times plotted; ee, the model expectations; ll and uu, the lower and upper 95 percent probability limits for the model.

Details

The function determines what to draw from the modelName of w, along with its parameter values.

Examples

Run this code
# NOT RUN {
 x1<- sim.punc(theta=c(0,10), omega=c(2,2))
 w1<- fitGpunc(x1, ng=2)
 plot(x1, modelFit=w1) 
 
 x2<- sim.GRW(ns=20, ms=1, vs=0.4)
 w2<- opt.GRW(x2)
 plot(x2, modelFit=w2)

# }

Run the code above in your browser using DataLab