tests/scssr.R

#====================================================================
# tests for sca
#====================================================================
library(FLa4a)
data(ple4)
data(ple4.indices)
ple4.indices <- ple4.indices[c(3,4,5)]
data(ple4.index)

#====================================================================
# run sca
#====================================================================
fit0 <-  sca(ple4, FLIndices(ple4.index))

#====================================================================
# bevholt
#====================================================================
fitbh <-  sca(ple4, FLIndices(ple4.index), srmodel=~bevholt(CV=0.2))

fitbhsv <-  sca(ple4, FLIndices(ple4.index), srmodel=~bevholtSV(CV=0.2))

#====================================================================
# ricker
#====================================================================

fitr <-  sca(ple4, FLIndices(ple4.index), srmodel=~ricker(CV=0.2))

#====================================================================
# hockey-stick
#====================================================================

fith <-  sca(ple4, FLIndices(ple4.index), srmodel=~hockey(CV=0.2))

#====================================================================
# geomean
#====================================================================

fitg <-  sca(ple4, FLIndices(ple4.index), srmodel=~geomean(CV=0.2))

#====================================================================
# mean
#====================================================================

fitm <-  sca(ple4, FLIndices(ple4.index), srmodel=~1)
flr/FLa4a documentation built on June 4, 2023, 11:05 a.m.