Printing LNRE Models (zipfR)

Description

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

Usage

1
2
3
4
5
  ## S3 method for class 'lnre'
print(x, ...)

  ## S3 method for class '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

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.

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.

See Also

See the lnre manpage for more information on LNRE models.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.