print.cdtafit: Print a summary of the fitted model.

Description Usage Arguments Value Author(s) References Examples

View source: R/print.R

Description

Print a summary of the fitted model.

Usage

1
2
## S3 method for class 'cdtafit'
print(x, digits = 3, ...)

Arguments

x

An cdtafit object from fit.

digits

An optional positive value to control the number of digits to print when printing numeric values. The default is 3.

...

other stan options.

Value

The posterior mean and 95 percent credible intervals, n_eff, Rhat and WAIC.

Author(s)

Victoria N Nyaga

References

Watanabe S (2010). Asymptotic Equivalence of Bayes Cross Validation and Widely Applicable Information Criterion in Singular Learning Theory. Journal of Machine Learning Research, 11, 3571-3594.

Vehtari A, Gelman A (2014). WAIC and Cross-validation in Stan. Unpublished, pp. 1-14.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
data(telomerase)
model1 <-  cdtamodel(copula = 'fgm')

model2 <- cdtamodel(copula = 'fgm',
               modelargs=list(param=2,
                              prior.lse='normal',
                              par.lse1=0,
                              par.lse2=5,
                              prior.lsp='normal',
                              par.lsp1=0,
                              par.lsp2=5))

model3 <-  cdtamodel(copula = 'fgm',
               modelargs = list(formula.se = StudyID ~ Test - 1))
## Not run: 

fit1 <- fit(model1,
                SID='ID',
                data=telomerase,
                iter=2000,
                warmup=1000,
                thin=1,
                seed=3)

print(fit1)


## End(Not run)

CopulaDTA documentation built on May 2, 2019, 7:01 a.m.