lebebr01 / simglm

Compare ef71428 ... +3 ... 4f78eb0

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 3 of 5 files from the diff.

@@ -53,7 +53,6 @@
Loading
53 53
      }
54 54
    }
55 55
    total_level2_samplesize <- sum(level2)
56 -
    sample_size['level2'] <- list(level2)
57 56
    
58 57
    if(1 %in% min_max_loc) {
59 58
      level1 <- runif(n = total_level2_samplesize,
@@ -68,6 +67,7 @@
Loading
68 67
      }
69 68
    }
70 69
    sample_size['level1'] <- list(level1)
70 +
    sample_size['level2'] <- list(level2)
71 71
    
72 72
    if(length(sample_size) == 3) {
73 73
      sample_size['level3_total'] <- list(sample_size_level3(sample_size)) 

@@ -39,6 +39,10 @@
Loading
39 39
    data <- simulate_randomeffect(data, sim_args = sim_args)
40 40
  }
41 41
  
42 +
  if(!is.null(sim_args[['correlate']])) {
43 +
    data <- correlate_variables(data, sim_args = sim_args)
44 +
  }
45 +
  
42 46
  data <- generate_response(data, sim_args = sim_args)
43 47
  
44 48
  if(!is.null(sim_args[['missing_data']])) {

@@ -284,7 +284,12 @@
Loading
284 284
    Xmat <- dplyr::bind_cols(Xmat, Omat)
285 285
  } else {
286 286
    Xmat <- data.frame(model.matrix(fixed_formula, Xmat, ...))
287 -
    colnames(Xmat)[2:ncol(Xmat)] <- fixed_vars
287 +
    
288 +
    if(grepl("^0", as.character(fixed_formula)[2])) {
289 +
      colnames(Xmat)[1:ncol(Xmat)] <- fixed_vars
290 +
    } else {
291 +
      colnames(Xmat)[2:ncol(Xmat)] <- fixed_vars
292 +
    }
288 293
  }
289 294
  
290 295
  if(is.null(data)) {

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
R -0.11% 75.21%
Project Totals (14 files) 75.21%
Loading