library(rlist) library(prevR) library(LakeLouiseBurbotOP2020)
length.comp.ss(0.05, 0.10)
load("S:/Jordy/louiseOP2020/Data/lakelines.Rdata") # Load Lake Louise lakelines n_max <- 492 seed <- set.seed(666) ts_mat <- pick.coords(lakelines, n_max, seed)$ts_mat N_vec <- seq(1000, 10000, by=1000) sig_vec <- seq(.1, 1, by=.1) q_bar <- 0.6478999 sd_q <- 0.07966257 A <- 6519 acc_lev <- c(0.3, 0.3) # 30 percent accuracy assess.accuracy(ts_mat, N_vec, sig_vec, q_bar, sd_q, acc_lev, A) acc_lev <- c(0.4, 0.4) # 40 percent accuracy assess.accuracy(ts_mat, N_vec, sig_vec, q_bar, sd_q, acc_lev, A) acc_lev <- c(0.5, 0.5) # 50 percent accuracy print("50 percent accuracy") assess.accuracy(ts_mat, N_vec, sig_vec, q_bar, sd_q, acc_lev, A)
set.seed(666) ct_mat <- get.ct.mat("S:/Jordy/louiseOP2020/Data/CPUE.xls", "CPUEL") ct_mat <- ct_mat[,-11] mu_vec <- seq(0.1, 1, by=.1) sig_vec <- c(0.05, 0.35, 0.85) alpha <- 0.10 calc.power(ct_mat, ts_mat, mu_vec, sig_vec, alpha)
trans_set_info <- pick.coords(lakelines, n_max, seed, quiet=F) df <- data.frame(nsets=trans_set_info$table) names(df) <- c("lon", "n_sets") df coords <- trans_set_info$set_coords names(coords) <- c("lon", "lat") head(coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.