# Synthetical length at age data
dat <- list(age = rep(x = 1:7,each = 15),
length = c(rnorm(n = 15, mean = 4.6, sd = 4),
rnorm(n = 15, mean = 22.8, sd = 7),
rnorm(n = 15, mean = 35, sd = 7),
rnorm(n = 15, mean = 43, sd = 7),
rnorm(n = 15, mean = 49, sd = 5),
rnorm(n = 15, mean = 53, sd = 5),
rnorm(n = 15, mean = 57, sd = 3)))
# Perform bootstrapped curve fitting with grolenage_boot
res <- grolenage_boot(param = dat, nresamp = 70)
# Plot scatter histograms of Linf and K
LinfK_scatterhist(res = res)
# Plot univariate density plots of all parameters
univariate_density(res = res)
# Plot swarm plots of all n bootstraps
vbgfCI_time(res = res)
# Extract data.frame with all parameter estimates
# for comparisons of posterior distributions
print(res$bootRaw)
Run the code above in your browser using DataLab