print.summary.BBreg: Print a summary.BBreg class model.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/BBreg.R

Description

print.summary.BBreg is the summary.BBreg specific method fot the generic function print which prints objects returned by modelling functions.

Usage

1
2
## S3 method for class 'summary.BBreg'
print(x, ...)

Arguments

x

a summary.BBreg class model.

...

for extra arguments.

Value

Prints a summary.BBreg object.

Author(s)

J. Najera-Zuloaga

D.-J. Lee

I. Arostegui

References

Forcina A. & Franconi L. (1988): Regression analysis with Beta-Binomial distribution, Revista di Statistica Applicata, 21, 7-12

Najera-Zuloaga J., Lee D.-J. & Arostegui I. (2017): Comparison of beta-binomial regression model approaches to analyze health related quality of life data, Statistical Methods in Medical Research, DOI: 10.1177/0962280217690413

See Also

BBreg,summary.BBreg

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# We simulate a covariate, fix the paramters of the beta-binomial 
# distribution and simulate a response variable.

# Then we apply the model, and try to get the same values.
set.seed(18)
k <- 1000
m <- 10
x <- rnorm(k,5,3)

beta <- c(-10,2)
p <- 1/(1+exp(-(beta[1]+beta[2]*x)))
phi <- 1.2

y <- rBB(k,m,p,phi)

model <- BBreg(y~x,m)
sum.model <- summary(model)
print(sum.model) # or just sum.model

PROreg documentation built on July 1, 2020, 7:02 p.m.