Description Usage Arguments Examples
summary.tuts_BFS
prints summary tables of tuts_BFS objects
1 2 |
object |
A tuts_BFS object. |
... |
A list of optional parameters: |
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 (a simulation is chosen for illustrative purposes):
DATA=simtuts(N=8,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:
n.sim=10
BFS=tubfs(y=y,ti.mu=ti.mu,ti.sd=ti.sd,freqs='internal',n.sim=n.sim,n.chains=2, CV=FALSE)
#3. Generate summary results (optional parameters are listed in brackets):
summary(BFS) # Summary results (CI, burn).
summary(BFS,burn=0.2) # Results after 20% of burn-in (CI).
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.