Skip to content

Commit

Permalink
Merge pull request #3 from andrewbaxter439/no_renv
Browse files Browse the repository at this point in the history
Updates to main project
  • Loading branch information
andrewbaxter439 authored Jul 28, 2021
2 parents 6763fd2 + ca1e912 commit 1dccfa4
Show file tree
Hide file tree
Showing 38 changed files with 3,433 additions and 1,485 deletions.
Binary file modified Conception rates by age and country updated.xlsx
Binary file not shown.
Binary file modified Conception rates by age and country.xlsx
Binary file not shown.
Binary file added Data/its_outputs.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 1.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 10.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 2.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 3.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 4.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 5.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 6.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 7.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 8.xlsx
Binary file not shown.
Binary file added Data/its_outputs/model 9.xlsx
Binary file not shown.
385 changes: 385 additions & 0 deletions Data/under-18-birth-rates.csv

Large diffs are not rendered by default.

385 changes: 385 additions & 0 deletions Data/under-20-pregnancy-rates.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion R/Data completion in excel file.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
library(XLConnect)
# library(XLConnect)
library(tidyverse)

# Connect to Excel file --------------------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions R/ITS model pre-strategy fit.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
library(tidyverse)
library(readxl)

output_tables <- map(excel_sheets("Data/its_outputs.xlsx"), ~
read_xlsx("Data/its_outputs.xlsx", sheet = .x))


output_tables %>%
map(~ filter(.x, Year < 1999,
Country == "England") %>%
summarise(mspe = Metrics::mse(Value, Predict),
rsq = cor(Value, Predict) ^2))
Loading

0 comments on commit 1dccfa4

Please sign in to comment.