Skip to content
Snippets Groups Projects
Commit 3ee476f6 authored by thierrychambert's avatar thierrychambert
Browse files

corrected typo in run_analysis

parent d853a952
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ coeff_var_environ = 0.10 ...@@ -26,7 +26,7 @@ coeff_var_environ = 0.10
fatal_constant = "M" fatal_constant = "M"
pop_size_type = "Npair" pop_size_type = "Npair"
cumuated_impacts = TRUE cumulated_impacts = TRUE
onset_year = c(2010, 2013, 2016) onset_year = c(2010, 2013, 2016)
onset_time = onset_year - min(onset_year) + 1 onset_time = onset_year - min(onset_year) + 1
...@@ -68,7 +68,7 @@ build_Leslie(s = s_calibrated, f = f_calibrated) %>% lambda ...@@ -68,7 +68,7 @@ build_Leslie(s = s_calibrated, f = f_calibrated) %>% lambda
##============================================================================== ##==============================================================================
## Analyses (simulations) == ## Analyses (simulations) ==
##============================================================================== ##==============================================================================
run0 <- run_simul(nsim, cumuated_impacts, run0 <- run_simul(nsim, cumulated_impacts,
fatalities_mean, fatalities_se, onset_time, fatalities_mean, fatalities_se, onset_time,
pop_size_mean, pop_size_se, pop_size_type, pop_size_mean, pop_size_se, pop_size_type,
pop_growth_mean, pop_growth_se, pop_growth_mean, pop_growth_se,
...@@ -80,7 +80,7 @@ run0 <- run_simul(nsim, cumuated_impacts, ...@@ -80,7 +80,7 @@ run0 <- run_simul(nsim, cumuated_impacts,
names(run0)
N <- run0$N ; dim(N) N <- run0$N ; dim(N)
plot_traj(N, xlab = "Annee", ylab = "Taille de population (totale)") plot_traj(N, xlab = "Annee", ylab = "Taille de population (totale)")
abline(h = K) abline(h = K)
...@@ -89,6 +89,11 @@ colSums(N[,,,]) %>% max ...@@ -89,6 +89,11 @@ colSums(N[,,,]) %>% max
plot_impact(N, onset_year = onset_year , xlab = "Annee", ylab = "Impact relatif") plot_impact(N, onset_year = onset_year , xlab = "Annee", ylab = "Impact relatif")
N <- run0$N
output <- get_metrics(N, cumuated_impacts = cumulated_impacts)
output$scenario$Pext
#plot_impact(N = N, xlab = "year", ylab = "pop size") #plot_impact(N = N, xlab = "year", ylab = "pop size")
#source("draws_histog.R") #source("draws_histog.R")
#draws_histog(draws = run0$lambdas, mu = pop_growth_mean, se = pop_growth_se) #draws_histog(draws = run0$lambdas, mu = pop_growth_mean, se = pop_growth_se)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment