a4aM-class.Rd
Class definition (slots), constructors, accessors, replacement (when relevant) and common methods.
a4aM(object, ...)
# S4 method for class 'missing'
a4aM(object, ...)
# S4 method for class 'a4aM'
show(object)
shape(object, ...)
# S4 method for class 'a4aM'
shape(object)
shape(object) <- value
# S4 method for class 'a4aM'
shape(object) <- value
level(object, ...)
# S4 method for class 'a4aM'
level(object)
level(object) <- value
# S4 method for class 'a4aM'
level(object) <- value
trend(object, ...)
# S4 method for class 'a4aM'
trend(object)
trend(object) <- value
# S4 method for class 'a4aM'
trend(object) <- value
shape
the shape of M by age
level
the mean level of M over a range of ages, which will be used to scale the shape
trend
the yearly trend in M
All slots in the class have accessor and replacement methods defined that allow retrieving and substituting individual slots.
The values passed for replacement need to be of the class of that slot. A numeric vector can also be used when replacing FLQuant slots, and the vector will be used to substitute the values in the slot, but not its other attributes.
A construction method exists for this class that can take named arguments for
any of its slots. All slots are then created to match the requirements of the
class validity. If an unnamed FLQuant
object is provided, this is used
for sizing, but not for populating any slot.
mod1 <- FLModelSim(model=~exp(-age-0.5))
mod2 <- FLModelSim(model=~1.5*k, params=FLPar(k=0.4))
m1 <- a4aM(shape=mod1, level=mod2)