Learn R Programming

zipfR (version 0.6-70)

print.lnre: Printing LNRE Models (zipfR)

Description

Implementations of the print and summary methods for LNRE models (subclasses of lnre).

Usage

# S3 method for lnre
print(x, ...)

# S3 method for lnre summary(object, ...)

Arguments

x, object

an object of class lnre or one of its subclasses, representing a LNRE model

...

other arguments passed on from generic method will be ignored

Value

NULL

Unlike other implementations of the summary method, summary.lnre only prints a summary on screen and does not return a special "summary" object.

Details

NB: implementation details and format of the summary are subject to change in future releases

In the current implementation, print and summary produce the same output for LNRE models.

This summary comprises the type of LNRE model, its parameter values, derived parameters such as normalization constants, and the population size \(S\).

If the model parameters have been estimated from an observed frequency spectrum, a comparison of the observed and expected frequency spectrum is shown, including goodness-of-fit statistics.

See Also

See the lnre manpage for more information on LNRE models.

Examples

Run this code
# NOT RUN {
# load Brown verbs dataset and estimate lnre models
data(BrownVer.spc)
zm <- lnre("zm",BrownVer.spc)
fzm <- lnre("fzm",BrownVer.spc,exact=FALSE)
gigp <- lnre("gigp",BrownVer.spc)

# look at summaries with either summary or print
summary(zm)
print(zm)

summary(fzm)
print(fzm)

summary(gigp)
print(gigp)

# }

Run the code above in your browser using DataLab