#====================================================================
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.