A class for modelling abundance indices.
FLIndex(object, ...)
# S4 method for FLQuant
FLIndex(object, plusgroup = dims(object)$max, ...)
# S4 method for missing
FLIndex(object, ...)
The FLIndex
object holds data and parameters related to abundance
indices.
Type of index (character
).
Statistical distribution of the index values
(character
).
Index values (FLQuant
).
Variance of the index (FLQuant
).
Catch numbers used to create the index (FLQuant
).
Catch weight of the index (FLQuant
).
Effort used to create the index (FLQuant
).
Selection pattern for the index (FLQuant
).
Catchability of the index (FLQuant
).
Name
of the stock (character
).
General description of the
object (character
).
Named numeric vector containing the
quant and year ranges, the plusgroup, and the period of the year, expressed
as proportions of a year, that corresponds to the index (numeric
).
# Create an FLIndex object.
fli <- FLIndex(index=FLQuant(rnorm(8), dim=c(1,8)), name="myTestFLindex")
summary(fli)
#> An object of class "FLIndex"
#>
#> Name: myTestFLindex
#> Description:
#> Type :
#> Distribution :
#> Quant: quant
#> Dims: quant year unit season area iter
#> 1 8 1 1 1 1
#>
#> Range: min max pgroup minyear maxyear startf endf
#> NA NA NA 1 8 NA NA
#>
index(fli)
#> An object of class "FLQuant"
#> , , unit = unique, season = all, area = unique
#>
#> year
#> quant 1 2 3 4 5 6 7 8
#> all -1.51096 -1.38532 0.73132 -1.85677 0.37034 -0.95581 1.34259 0.63809
#>
#> units: NA
# Creat an FLIndex object using an existing FLQuant object.
data(ple4)
# Create a perfect index of abundance from abundance at age
fli2 <- FLIndex(index=stock.n(ple4))
# Add some noise around the signal
index(fli2) <- index(fli2)*exp(rnorm(1, index(fli2)-index(fli2), 0.1))