Skip to content
Snippets Groups Projects
Commit 90d79ed3 authored by dj44vuri's avatar dj44vuri
Browse files

added time output

parent 24a5411c
Branches
Tags
No related merge requests found
...@@ -3,22 +3,27 @@ ...@@ -3,22 +3,27 @@
designpath<- "Projects/Agora/Designs/" designpath<- "Projects/Agora/Designs/"
resps =360 # number of respondents resps =360 # number of respondents
nosim=1000 # number of simulations to run (about 500 is minimum) nosim=2 # number of simulations to run (about 500 is minimum)
#betacoefficients should not include "-" #betacoefficients should not include "-"
#basc = -1.2
#basc2 = -1.4 #design priors parameters
#baction = 0.1 basc = -1.2
#badvisory = 0.4 basc2 = -1.4
#bpartner = 0.3 baction = 0.1
#bcomp = 0.02 badvisory = 0.4
bpartner = 0.3
basc = -2.2 bcomp = 0.02
basc2 = -2.7
baction = -0.15
badvisory = 0.26 # from survey
bpartner = -0.09
bcomp = 0.004 # basc = -2.2
# basc2 = -2.7
# baction = -0.15
# badvisory = 0.26
# bpartner = -0.09
# bcomp = 0.004
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
rm(list=ls()) rm(list=ls())
#file <- "Projects/ValuGaps/parameters_valugaps.R" #file <- "Projects/ValuGaps/parameters_valugaps.R"
file <- "Projects/Agora/parameters_agora.R" file <- "Projects/SE_DRIVE/parameters_SE_DRIVE.R"
rmarkdown::render("simulation_output.rmd", rmarkdown::render("simulation_output.rmd",
output_file = paste0(stringr::str_remove_all(file, output_file = paste0(stringr::str_remove_all(file,
"parameters_|.R$"),"reecap.html"), "parameters_|.R$"),".html"),
params = list(file=file) params = list(file=file)
) )
......
...@@ -36,6 +36,8 @@ print(combined_vector) ...@@ -36,6 +36,8 @@ print(combined_vector)
The simulation has `r resps` respondents and `r nosim` runs. The simulation has `r resps` respondents and `r nosim` runs.
The total time for estimation is `r all_designs[["time"]]`.
the parameters used for the simulation are: the parameters used for the simulation are:
```{r, echo=FALSE} ```{r, echo=FALSE}
......
...@@ -34,7 +34,7 @@ time <- tictoc::toc() ...@@ -34,7 +34,7 @@ time <- tictoc::toc()
print(time) print(time)
all_designs[["time"]]=time
powa <- map(all_designs, ~ .x$power) powa <- map(all_designs, ~ .x$power)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment