pachadotdev / gravity

Compare 698ee1e ... +4 ... d6d5041

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 4 of 67 files from the diff.
Other files ignored by Codecov
man/bvw.Rd has changed.
man/nbpml.Rd has changed.
docs/index.html has changed.
docs/pkgdown.css has changed.
docs/pkgdown.yml has changed.
man/ppml.Rd has changed.
man/gpml.Rd has changed.
man/ddm.Rd has changed.
.Rbuildignore has changed.
docs/authors.html has changed.
man/ek_tobit.Rd has changed.
man/bvu.Rd has changed.
docs/pkgdown.js has changed.
README.Rmd has changed.
README.md has changed.
man/ols.Rd has changed.
man/nls.Rd has changed.
man/tetrads.Rd has changed.
DESCRIPTION has changed.
NEWS.md is new.
man/et_tobit.Rd has changed.
.travis.yml was deleted.
man/tobit.Rd has changed.
man/sils.Rd has changed.

@@ -95,8 +95,8 @@
Loading
95 95
#' library(dplyr)
96 96
#' data("gravity_no_zeros")
97 97
#' 
98 -
#' # Choose 5 countries for testing
99 -
#' countries_chosen <- c("AUS", "CHN", "GBR", "BRA", "CAN")
98 +
#' # Choose 3 countries for testing
99 +
#' countries_chosen <- c("AUS", "GBR", "CAN")
100 100
#' grav_small <- filter(gravity_no_zeros, iso_o %in% countries_chosen)
101 101
#' 
102 102
#' fit <- nbpml(

@@ -89,11 +89,11 @@
Loading
89 89
#' # Executable in < 5 sec
90 90
#' library(dplyr)
91 91
#' data("gravity_no_zeros")
92 -
#' 
92 +
#'
93 93
#' # Choose 5 countries for testing
94 94
#' countries_chosen <- c("AUS", "CHN", "GBR", "BRA", "CAN")
95 95
#' grav_small <- filter(gravity_no_zeros, iso_o %in% countries_chosen)
96 -
#' 
96 +
#'
97 97
#' fit <- bvw(
98 98
#'   dependent_variable = "flow",
99 99
#'   distance = "distw",
@@ -172,11 +172,11 @@
Loading
172 172
173 173
  # Multilateral resistance (MR) for distance ----------------------------------
174 174
  d <- d %>%
175 -
    group_by(!!sym(code_origin), add = FALSE) %>%
175 +
    group_by(!!sym(code_origin), .add = FALSE) %>%
176 176
    mutate(
177 177
      mr_dist_1 = sum(!!sym("theta_j") * !!sym("dist_log"), na.rm = TRUE)
178 178
    ) %>%
179 -
    group_by(!!sym(code_destination), add = FALSE) %>%
179 +
    group_by(!!sym(code_destination), .add = FALSE) %>%
180 180
    mutate(
181 181
      mr_dist_2 = sum(!!sym("theta_i") * !!sym("dist_log"), na.rm = TRUE)
182 182
    ) %>%

@@ -83,11 +83,11 @@
Loading
83 83
#' # Executable in < 5 sec
84 84
#' library(dplyr)
85 85
#' data("gravity_no_zeros")
86 -
#' 
86 +
#'
87 87
#' # Choose 5 countries for testing
88 88
#' countries_chosen <- c("AUS", "CHN", "GBR", "BRA", "CAN")
89 89
#' grav_small <- filter(gravity_no_zeros, iso_o %in% countries_chosen)
90 -
#' 
90 +
#'
91 91
#' fit <- ddm(
92 92
#'   dependent_variable = "flow",
93 93
#'   distance = "distw",
@@ -143,22 +143,22 @@
Loading
143 143
      y_log_ddm = !!sym("y_log"),
144 144
      dist_log_ddm = !!sym("dist_log")
145 145
    ) %>%
146 -
    group_by(!!sym(code_origin), add = FALSE) %>%
146 +
    group_by(!!sym(code_origin), .add = FALSE) %>%
147 147
    mutate(
148 148
      ym1 = mean(!!sym("y_log_ddm"), na.rm = TRUE),
149 149
      dm1 = mean(!!sym("dist_log_ddm"), na.rm = TRUE)
150 150
    ) %>%
151 -
    group_by(!!sym(code_destination), add = FALSE) %>%
151 +
    group_by(!!sym(code_destination), .add = FALSE) %>%
152 152
    mutate(
153 153
      ym2 = mean(!!sym("y_log_ddm"), na.rm = TRUE),
154 154
      dm2 = mean(!!sym("dist_log_ddm"), na.rm = TRUE)
155 155
    ) %>%
156 -
    group_by(!!sym(code_origin), add = FALSE) %>%
156 +
    group_by(!!sym(code_origin), .add = FALSE) %>%
157 157
    mutate(
158 158
      y_log_ddm = !!sym("y_log_ddm") - !!sym("ym1"),
159 159
      dist_log_ddm = !!sym("dist_log_ddm") - !!sym("dm1")
160 160
    ) %>%
161 -
    group_by(!!sym(code_destination), add = FALSE) %>%
161 +
    group_by(!!sym(code_destination), .add = FALSE) %>%
162 162
    mutate(
163 163
      y_log_ddm = !!sym("y_log_ddm") - !!sym("ym2"),
164 164
      dist_log_ddm = !!sym("dist_log_ddm") - !!sym("dm2")
@@ -174,9 +174,9 @@
Loading
174 174
    select(!!sym(code_origin), !!sym(code_destination), !!!syms(additional_regressors)) %>%
175 175
    gather(!!sym("key"), !!sym("value"), -!!sym(code_origin), -!!sym(code_destination)) %>%
176 176
    mutate(key = paste0(!!sym("key"), "_ddm")) %>%
177 -
    group_by(!!sym(code_origin), !!sym("key"), add = FALSE) %>%
177 +
    group_by(!!sym(code_origin), !!sym("key"), .add = FALSE) %>%
178 178
    mutate(ddm = !!sym("value") - mean(!!sym("value"), na.rm = TRUE)) %>%
179 -
    group_by(!!sym(code_destination), !!sym("key"), add = FALSE) %>%
179 +
    group_by(!!sym(code_destination), !!sym("key"), .add = FALSE) %>%
180 180
    mutate(ddm = !!sym("ddm") - mean(!!sym("value"), na.rm = TRUE)) %>%
181 181
    ungroup() %>%
182 182
    mutate(value = !!sym("ddm") + mean(!!sym("value"), na.rm = TRUE)) %>%

@@ -87,11 +87,11 @@
Loading
87 87
#' # Executable in < 5 sec
88 88
#' library(dplyr)
89 89
#' data("gravity_no_zeros")
90 -
#' 
90 +
#'
91 91
#' # Choose 5 countries for testing
92 92
#' countries_chosen <- c("AUS", "CHN", "GBR", "BRA", "CAN")
93 93
#' grav_small <- filter(gravity_no_zeros, iso_o %in% countries_chosen)
94 -
#' 
94 +
#'
95 95
#' fit <- bvu(
96 96
#'   dependent_variable = "flow",
97 97
#'   distance = "distw",
@@ -159,7 +159,7 @@
Loading
159 159
  d <- d %>%
160 160
    group_by(!!sym(code_origin)) %>%
161 161
    mutate(mean_dist_log_1 = mean(!!sym("dist_log"), na.rm = TRUE)) %>%
162 -
    group_by(!!sym(code_destination), add = FALSE) %>%
162 +
    group_by(!!sym(code_destination), .add = FALSE) %>%
163 163
    mutate(mean_dist_log_2 = mean(!!sym("dist_log"), na.rm = TRUE)) %>%
164 164
    ungroup() %>%
165 165
    mutate(

Learn more Showing 15 files with coverage changes found.

Changes in R/sils.R
-21
Loading file...
Changes in R/tobit.R
-4
Loading file...
Changes in R/bvu.R
-4
Loading file...
Changes in R/ek_tobit.R
-6
Loading file...
Changes in R/nls.R
-4
Loading file...
Changes in R/hm_summary.R
-8
-9
Loading file...
Changes in R/et_tobit.R
-4
Loading file...
Changes in R/bvw.R
-3
Loading file...
Changes in R/ddm.R
-2
Loading file...
Changes in R/log_distance.R
-1
Loading file...
Changes in R/tetrads.R
-12
-1
Loading file...
Changes in R/ppml.R
-1
-1
Loading file...
Changes in R/gpml.R
-1
-1
Loading file...
Changes in R/nbpml.R
-1
-1
Loading file...
Changes in R/ols.R
-2
-3
Loading file...
Files Coverage
R/bvu.R -0.36% 94.64%
R/bvw.R -0.37% 95.08%
R/ddm.R -0.47% 94.92%
R/discard_unusable.R 100.00%
R/ek_tobit.R -0.34% 97.44%
R/et_tobit.R -0.28% 97.22%
R/fixed_effects.R 90.91%
R/gpml.R +1.92% 76.92%
R/hm_summary.R -0.32% 44.54%
R/log_distance.R 100.00%
R/nbpml.R +1.92% 76.92%
R/nls.R -0.33% 96.97%
R/ols.R +4.49% 79.49%
R/ppml.R +1.19% 67.86%
R/sils.R -0.97% 94.23%
R/tetrads.R 0.31% 95.05%
R/tobit.R -0.37% 96.77%
Project Totals (17 files) 84.61%
Loading