print.rct3: Print an rct3 fit

Description Usage Arguments Value See Also Examples

View source: R/print.rct3.R

Description

Print an rct3 fit showing the model settings and predicted recruitments

Usage

1
2
## S3 method for class 'rct3'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

an object of class rct3 - an output from the rct3 function.

digits

optional integer for how much to round the values in the output tables.

...

additional arguments to print.data.frame

Value

invisibly returns a summary data frame.

See Also

rct3 run a calibrated regression to predict rectruitment.

summary.rct3 summarise a rct3 object

rct3-package gives an overview of the package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# load recruitment data
data(recdata)

formula <-
 recruitment ~ NT1 + NT2 + NT3 + NAK1 + NAK2 + NAK3 +
               RT1 + RT2 + RT3 + EC01 + ECO2 + ECO3

my_rct3 <- rct3(formula, recdata, predictions = 2012:2017, shrink = TRUE)

# see a short summary
my_rct3

# for a full summary do:
summary(my_rct3)

# the components are here:
my_rct3$rct3
my_rct3$rct3.summary

# predicted recruitment
t(my_rct3$rct3.summary["WAP"])

rct3 documentation built on Oct. 23, 2020, 8:18 p.m.