| print.sabre {sabreR} | R Documentation |
'print.sabre' is used to print information about a fitted sabre model.
## S3 method for class 'sabre':
print(x, estimates = TRUE, iterations = FALSE,
variables = FALSE, settings = TRUE, shm = TRUE, rem = TRUE,...)
x |
The sabre model to be printed (mandatory) |
estimates |
Output will include model estimates for standard homogenous model (if shm = TRUE) and random effects model (if rem = TRUE). |
iterations |
Output will include the iterations from the model fitting for standard homogenous model (if shm = TRUE) and random effects model (if rem = TRUE). |
variables |
Output will include the model variable names and types for standard homogenous model (if shm = TRUE) and random effects model (if rem = TRUE). |
settings |
Output will include the model settings and likelihood figures for standard homogenous model (if shm = TRUE) and random effects model (if rem = TRUE). |
shm |
Enables information regarding the standard homogenous model when set to TRUE |
rem |
Enables information regarding the random effects model when set to TRUE |
... |
other arguments to be passed to or from other methods |
Displays the details of the fitted model.
Prof. R. Crouchley Centre for e-Science Lancaster University Lancaster United Kingdom e-mail : asarc@exchange.lancs.ac.uk
# load data ...
data(drvisits)
# ... and attach it
attach(drvisits)
# the first model
sabre.model.1<-sabre(numvisit~reform+age+educ+married+badh+loginc+summer,
case=obs,
first.family="poisson")
# the second model
sabre.model.2<-sabre(numvisit~reform+age+educ+married+badh+loginc+summer,
case=id,
first.family="poisson")
# compare them
print(sabre.model.1)
print(sabre.model.2)