summary.tuts_polyn: Prints summary tables of tuts_polyn objects

Description Usage Arguments Examples

View source: R/a_tuPN.R

Description

summary.tuts_polyn prints summary tables of tuts_polyn objects.

Usage

1
2
## S3 method for class 'tuts_polyn'
summary(object, ...)

Arguments

object

A tuts_polyn object.

...

A list of optional parameters:
- burn: burn-in parameter ranging from 0 to 0.7, the default value is 0.
- CI: confidence interval, the default value is set to 0.99.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Note: Most of models included in tuts package are computationally intensive. In the example
# below I set parameters to meet CRAN<e2><80><99>s testing requirement of maximum 5 sec per example.
# A more practical example would contain N=50 in the first line of the code and n.sim=10000.

#1. Import or simulate the data (simulation is chosen for illustrative purposes):
DATA=simtuts(N=10,Harmonics=c(4,0,0), sin.ampl=c(10,0, 0), cos.ampl=c(0,0,0),
            trend=0,y.sd=2, ti.sd=0.2)
y=DATA$observed$y.obs
ti.mu=DATA$observed$ti.obs.tnorm
ti.sd= rep(0.2, length(ti.mu))

#2. Fit the model:
polyorder=2
n.sim=1000
PN=tupolyn(y=y,ti.mu=ti.mu,ti.sd=ti.sd,polyorder=polyorder,n.sim=n.sim, CV=FALSE)

#3. Generate summary results (optional parameters are listed in brackets):
summary(PN)                               # Summary results (burn, CI).

tuts documentation built on May 1, 2019, 7:56 p.m.