Description Usage Arguments Details Value IFAR Chapter Note Author(s) References See Also Examples
Uses dynamic plots to find reasonable starting values for the parameters in a specific parameterization of the von Bertalanffy growth function.
1 2 3 4 5 6 7 8 9 10 11 | vbStartsDP(
formula,
data = NULL,
type = c("Typical", "typical", "Traditional", "traditional", "BevertonHolt",
"Original", "original", "vonBertalanffy", "GQ", "GallucciQuinn", "Mooij", "Weisberg",
"Schnute", "Francis", "Somers", "Somers2"),
ages2use = NULL,
methEV = c("means", "poly"),
meth0 = c("yngAge", "poly"),
...
)
|
formula |
A formula of the form |
data |
A data frame that contains the variables in |
type |
A string that indicates the parameterization of the von Bertalanffy model. |
ages2use |
A numerical vector of the two ages to be used in the Schnute or Francis paramaterizations. See |
methEV |
A string that indicates how the lengths of the two ages in the Schnute paramaterization or the three ages in the Francis paramaterization should be derived. See |
meth0 |
A string that indicates how the t0 and L0 paramaters should be derived. See |
... |
Further arguments passed to the methods. |
Starting values can be obtained by plotting the data with the model superimposed but tied to slider bars that allow the parameters to be interactively changed. One can change the parameters until a reasonable fit is observed and then use those valeus as starting values. The initial parameters for the slider bars are the starting values constructed with vbStarts
. It should be noted that the dynamic plot may show an error of “[tcl] can't get device image”, but the plot will correctly update if the slider bar is adjusted.
None, but a dynamic plot is constructed.
12-Individual Growth.
The ‘original’ and ‘vonBertalanffy’ and the ‘typical’ and ‘BevertonHolt’ parameterizations are synonymous.
Derek H. Ogle, derek@derekogle.com
Ogle, D.H. 2016. Introductory Fisheries Analyses with R. Chapman & Hall/CRC, Boca Raton, FL.
See references in vbFuns
.
See vbStarts
for related functionality.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Dynamic Plots Method -- ONLY RUN IN INTERACTIVE MODE
if (interactive()) {
require(FSA)
data(SpotVA1)
vbStartsDP(tl~age,data=SpotVA1)
vbStartsDP(tl~age,data=SpotVA1,type="typical")
vbStartsDP(tl~age,data=SpotVA1,type="Typical")
vbStartsDP(tl~age,data=SpotVA1,type="traditional")
vbStartsDP(tl~age,data=SpotVA1,type="Traditional")
vbStartsDP(tl~age,data=SpotVA1,type="BevertonHolt")
vbStartsDP(tl~age,data=SpotVA1,type="original")
vbStartsDP(tl~age,data=SpotVA1,type="Original")
vbStartsDP(tl~age,data=SpotVA1,type="vonBertalanffy")
vbStartsDP(tl~age,data=SpotVA1,type="GQ")
vbStartsDP(tl~age,data=SpotVA1,type="GallucciQuinn")
vbStartsDP(tl~age,data=SpotVA1,type="Mooij")
vbStartsDP(tl~age,data=SpotVA1,type="Weisberg")
vbStartsDP(tl~age,data=SpotVA1,type="Francis",ages2use=c(0,5))
vbStartsDP(tl~age,data=SpotVA1,type="Schnute",ages2use=c(0,5))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.