ITSLeeds / pct
Showing 1 of 2 files from the diff.
Newly tracked file
R/model.R changed.
Other files ignored by Codecov

@@ -19,10 +19,14 @@
Loading
19 19
#' m2 = model_pcycle_pct_2020(
20 20
#'   pcycle_dutch, distance = l$rf_dist_km,
21 21
#'   gradient = l$rf_avslope_perc - 0.78,
22 -
#'   weights = l$all
22 +
#'   weights = l$all)
23 +
#' )
24 +
#' m3 = model_pcycle_pct_2020(
25 +
#'   pcycle_dutch, distance = l$rf_dist_km,
26 +
#'   gradient = l$rf_avslope_perc - 0.78,
27 +
#'   weights = rep(1, nrow(l))
23 28
#' )
24 29
#' m1
25 -
#' m2$coef
26 30
#' plot(l$rf_dist_km, pcycle, cex = l$all / 100, ylim = c(0, 0.5))
27 31
#' points(l$rf_dist_km, m1$fitted.values, col = "red")
28 32
#' points(l$rf_dist_km, m2$fitted.values, col = "blue")
@@ -40,7 +44,11 @@
Loading
40 44
#'   i1 = 0.02006,
41 45
#'   i2 = -0.1234
42 46
#' )
47 +
#' pct_coefficients_2020
48 +
#' m2$coef
43 49
#' plot(pct_coefficients_2020, m2$coeff)
50 +
#' cor(pct_coefficients_2020, m2$coeff)^2
51 +
#' cor(pct_coefficients_2020, m3$coeff)^2 # 0.99 - only 1% out
44 52
model_pcycle_pct_2020 = function(pcycle, distance, gradient, weights) {
45 53
  pcycle[pcycle == 0] = 0.001 # 1 in a 1000 is lowerst level of cycling allowed
46 54
  stats::glm(formula = pcycle ~
Files Coverage
R 62.22%
Project Totals (5 files) 62.22%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
        informational: true
10
    patch:
11
      default:
12
        target: auto
13
        threshold: 1%
14
        informational: true
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading