From 7bede225a1d41fa575ee7c2577c9f3bba337340c Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Tue, 25 Feb 2020 01:38:37 -0600 Subject: [PATCH] 1st analysis ref #2 --- .../figure-png/scatterplots-1.png | Bin 0 -> 19640 bytes .../month-performance-1/month-performance-1.R | 140 ++ .../month-performance-1.Rmd | 145 ++ .../month-performance-1.html | 1804 +++++++++++++++++ .../month-performance-1.md | 226 +++ config.yml | 26 +- data-public/raw/month-performance.csv | 5 + 7 files changed, 2322 insertions(+), 24 deletions(-) create mode 100644 analysis/month-performance-1/figure-png/scatterplots-1.png create mode 100644 analysis/month-performance-1/month-performance-1.R create mode 100644 analysis/month-performance-1/month-performance-1.Rmd create mode 100644 analysis/month-performance-1/month-performance-1.html create mode 100644 analysis/month-performance-1/month-performance-1.md create mode 100644 data-public/raw/month-performance.csv diff --git a/analysis/month-performance-1/figure-png/scatterplots-1.png b/analysis/month-performance-1/figure-png/scatterplots-1.png new file mode 100644 index 0000000000000000000000000000000000000000..4480db60c1d4b7c10b95f4692a1a594590c8a797 GIT binary patch literal 19640 zcmb5W2Ut^Gw=Eosf=Y>kg7l(*bP?&zPzC9|OYgmRRGM@}K&c|V3y27zN*C$91_-@| zCN02S@q5qt@BRLJ&$%~`KE`Axd+)X8nrnaF)|`gFuK{F@Lc-oeIn$5IV?nsb?DAX^=B5i2bpRRONsXa)-TQ2 z*Q861k7VP%*(Br%rr22q21TdF^t z#tHs~goFp({S3cb~7<>w7H~l$FPAt6`-BrWFIc zrD}yCdM011^hzmWWVTqbLt9=B*jAsMmlGygP!r)bjgE|t-X{nnGAhwv^*h>FE+3N8 zGB&2ArRDOx`|3+|wPvA)>A}Kd0yAC;5217wwk3hGl9H0y;7(>DaQD~f=dmD=Iyzht z2tLG!H^aXE6$2K>lVBB5FLgcEO4rZir9{v4o3mQj~#un4Uy zh7x$gXD|OuJ6)k#iBtI;_Bm&&tol1*C`DFubp@*GRsnGQNM&%H^ucP-es zxN#7*HB|#Y-bk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*9I<@6xL17_%2$irWJ0qiHNo7kWXt)555@0%i8YlwH z@?LX3%pxNGz~c?(8T^a~Xv}&T0=Bx9^WCQ8ZgXJP@^T9X9Rb_~pzVbQCYLD|0A^vu zUFZfqXtvoJ&L_S~0XG1;V?d+ntty^}1>e3M_HZ?&33=GUUEJ2aqEvR-N>h97|7GC* z+kKv^=F>^-ML;DG53K~gV9am7B$%%BrY2`(7^$jOn6^iP-?G>^@+}@cn}0(LScdx6 zehaMu=QxA6uPKkYyMkL`Dv@1e47`}V#4%YfUDua~+$0d_Wk4dmUs zqg{?2KfaewRB6+;ZO>#mE`Ip%!NA1iiK)80tZZ&iizLE~_y@`pJ;KAMckEbKT~lLY zYO1Q_rFnYO9>!^@z((Zx^ZtTAe_xr<*w|RK6L^Zsnyvfx?F;kz`{wQAYC(P$r-TRU zEjKf|{y%U99tr|HO95D5g=jsEy;%Q^{Z)OQh>VQPoS8E>=30ZdWc|OIz_HNDMu4NS zaehGRVok0;moHDwy$x)G0?$vnH}&4Vd$(^#zb{`Jv{6S}sPl)fKd?qAiE{B;I_Y|; zkeZ?#N6Uc&{x>!y{uBE9`}gkL+rTQn*IZ9&Wyq^{@76`F?eegjFE1_qdG@*~QL(Y5 zvD@R;&!0Qj*T?725#Ptl1z@f<*gyF$FlNr3^Lw1FA=aInm)CXT>C>f;Er4rrKUUOK zR$7Vy7d~$N`n7cJ*T;{Ol_qw$Ee7uHQYtDa2+$A#<|Ct-b7s$eyuy7ll99m1z=f7G t@xX+-fHM$ykd=V|E3jR_jE8waTvqGOweKHi024I>gQu&X%Q~loCIANoY_tFX literal 0 HcmV?d00001 diff --git a/analysis/month-performance-1/month-performance-1.R b/analysis/month-performance-1/month-performance-1.R new file mode 100644 index 0000000..117ef05 --- /dev/null +++ b/analysis/month-performance-1/month-performance-1.R @@ -0,0 +1,140 @@ +rm(list = ls(all.names = TRUE)) # Clear the memory of variables from previous run. This is not called by knitr, because it's above the first chunk. + +# ---- load-sources ------------------------------------------------------------ +#Load any source files that contain/define functions, but that don't load any other types of variables +# into memory. Avoid side effects and don't pollute the global environment. +# source("SomethingSomething.R") + +# ---- load-packages ----------------------------------------------------------- +library(ggplot2) #For graphing +import::from("magrittr", "%>%") +requireNamespace("dplyr") +# requireNamespace("RColorBrewer") +# requireNamespace("scales") #For formating values in graphs +# requireNamespace("mgcv) #For the Generalized Additive Model that smooths the longitudinal graphs. +# requireNamespace("TabularManifest") # remotes::install_github("Melinae/TabularManifest") + +# ---- declare-globals --------------------------------------------------------- +options(show.signif.stars=F) #Turn off the annotations on p-values +config <- config::get() + +palette_dark <- list( # http://colrd.com/image-dna/50489/ + # "#141e1f", # black + "boundary" = "#3e525c", # dark gray + "post" = "#27403a", # dark green + "pre" = "#804d1e" # dark brown + # "#77b6c4", # light blue + # "post" = "#185f63", # lighter green + # "pre" = "#c5873e" # lighter brown +) +palette_light <- list( # http://colrd.com/image-dna/50489/ + # "#141e1f", # black + "boundary" = "#3e525c", # dark gray + # "post" = "#27403a", # dark green + # "pre" = "#804d1e", # dark brown + # "#77b6c4", # light blue + "post" = "#185f63", # lighter green + "pre" = "#c5873e" # lighter brown +) +# OuhscMunge::readr_spec_aligned(config$path_month_raw) + +col_types <- readr::cols_only( + `month` = readr::col_date(format = ""), + `phase` = readr::col_character(), + `stroke_numerator` = readr::col_integer(), + `stroke_denominator` = readr::col_integer(), + `antithromb_numerator` = readr::col_integer(), + `antithromb_denominator` = readr::col_integer(), + `anticoag_numerator` = readr::col_integer(), + `anticoag_denominator` = readr::col_integer(), + `statin_numerator` = readr::col_integer(), + `statin_denominator` = readr::col_integer(), + `smoking_numerator` = readr::col_integer(), + `smoking_denominator` = readr::col_integer(), + `cumulative_numerator` = readr::col_integer(), + `cumulative_denominator` = readr::col_integer() +) + +# ---- load-data --------------------------------------------------------------- +ds <- readr::read_csv(config$path_month_raw, col_types = col_types) + +# ---- tweak-data -------------------------------------------------------------- +ds <- + ds %>% + dplyr::mutate( + post = dplyr::recode(phase, "pre" = 0L, "post" = 1L), + phase = factor(phase, levels = c("pre", "post")), + ) %>% + dplyr::mutate( + stroke_proportion = stroke_numerator / stroke_denominator , + antithromb_proportion = antithromb_numerator / antithromb_denominator , + anticoag_proportion = anticoag_numerator / anticoag_denominator , + statin_proportion = statin_numerator / statin_denominator , + smoking_proportion = smoking_numerator / smoking_denominator , + cumulative_proportion = cumulative_numerator / cumulative_denominator , + ) %>% + dplyr::mutate( + stroke_label = sprintf("%4.0f%% (%2i of %2i)", stroke_proportion * 100, stroke_numerator , stroke_denominator ), + antithromb_label = sprintf("%4.0f%% (%2i of %2i)", antithromb_proportion * 100, antithromb_numerator , antithromb_denominator ), + anticoag_label = sprintf("%4.0f%% (%2i of %2i)", anticoag_proportion * 100, anticoag_numerator , anticoag_denominator ), + statin_label = sprintf("%4.0f%% (%2i of %2i)", statin_proportion * 100, statin_numerator , statin_denominator ), + smoking_label = sprintf("%4.0f%% (%2i of %2i)", smoking_proportion * 100, smoking_numerator , smoking_denominator ), + cumulative_label = sprintf("%4.0f%% (%2i of %2i)", cumulative_proportion * 100, cumulative_numerator , cumulative_denominator ), + ) + +# ---- marginals --------------------------------------------------------------- +# # Inspect continuous variables +# histogram_continuous(d_observed=ds, variable_name="quarter_mile_sec", bin_width=.5, rounded_digits=1) +# # slightly better function: TabularManifest::histogram_continuous(d_observed=ds, variable_name="quarter_mile_sec", bin_width=.5, rounded_digits=1) +# histogram_continuous(d_observed=ds, variable_name="displacement_inches_cubed", bin_width=50, rounded_digits=1) +# +# # Inspect discrete/categorical variables +# histogram_discrete(d_observed=ds, variable_name="carburetor_count_f") +# histogram_discrete(d_observed=ds, variable_name="forward_gear_count_f") + + +# ---- scatterplots ------------------------------------------------------------ +x_breaks <- ds$month + +g1 <- + ggplot(ds, aes(x=month, y=statin_proportion, size=statin_denominator, label=statin_label, color = phase)) + + geom_text(aes(y = -Inf, size=5), angle = 90, hjust = 0) + + geom_vline(xintercept = config$intervention_start, size = 4, color = "gray70", alpha = .6) + + annotate("text", label = "intervention starts", x = config$intervention_start, y = .5, hjust = .5, angle = 90, alpha = .4) + + geom_line(size=.5, color = "gray70") + + geom_point(aes(fill = phase), shape=21, alpha = .5) + + scale_x_date(breaks = x_breaks, date_labels = "%b\n%Y") + + scale_y_continuous(labels = scales::percent_format(accuracy = 1)) + + scale_color_manual(values = palette_dark, guide = "none") + + scale_fill_manual(values = palette_light, guide = "none") + + scale_size(guide = "none") + + coord_cartesian(ylim = c(0, 1)) + + theme_light() + + theme(axis.ticks = element_blank()) + + labs(x = NULL, y = "statin") +g1 + +# g1 %+% aes(color=cylinder_count) + + +# ---- models ------------------------------------------------------------------ +m1 <- lm(statin_proportion ~ 1 + post, data=ds) +summary(m1) + +m2 <- glm( + statin_numerator / statin_denominator ~ 1 + post, + family = quasipoisson, + data = ds +) +summary(m2) + + +# ---- model-results-table ----------------------------------------------- +summary(m2)$coef %>% + knitr::kable( + digits = 2, + format = "markdown" + ) + +# Uncomment the next line for a dynamic, JavaScript [DataTables](https://datatables.net/) table. +# DT::datatable(round(summary(m2)$coef, digits = 2), options = list(pageLength = 2)) diff --git a/analysis/month-performance-1/month-performance-1.Rmd b/analysis/month-performance-1/month-performance-1.Rmd new file mode 100644 index 0000000..531b4ba --- /dev/null +++ b/analysis/month-performance-1/month-performance-1.Rmd @@ -0,0 +1,145 @@ +--- +title: Skeleton Report 1 +date: "Date: `r Sys.Date()`" +output: + # radix::radix_article: # radix is a newer alternative that has some advantages over `html_document`. + html_document: + keep_md: yes + toc: 4 + toc_float: true + number_sections: true + css: ../common/styles.css # analysis/common/styles.css +--- + +This report covers the analyses used in the ZZZ project (Marcus Mark, PI). + + +```{r, echo=F, message=F} +# cat("Working directory: ", getwd()) +library(knitr) +opts_knit$set(root.dir='../../') #Don't combine this call with any other chunk -especially one that uses file paths. +``` + + +```{r set-options, echo=F} +# cat("Working directory: ", getwd()) +report_render_start_time <- Sys.time() +opts_chunk$set( + results = 'show', + comment = NA, + tidy = FALSE, + # dpi = 400, + # out.width = "650px", #This affects only the markdown, not the underlying png file. The height will be scaled appropriately. + fig.width = 4, + fig.height = 4, + fig.path = 'figure-png/' +) + +echo_chunks <- FALSE # Toggle for debugging. +message_chunks <- FALSE # Toggle for debugging. +# options(width=100) # So the output is 25% wider than the default. +read_chunk("./analysis/month-performance-1/month-performance-1.R") # This allows knitr to call chunks tagged in the underlying *.R file. +``` + + +```{r load-sources, echo=echo_chunks, message=message_chunks} +``` + + +```{r load-packages, echo=echo_chunks, message=message_chunks} +``` + + +```{r declare-globals, echo=echo_chunks, results='show', message=message_chunks} +``` + + +```{r rmd-specific, echo=echo_chunks, message=message_chunks} +# Put presentation-specific code in here. It doesn't call a chunk in the codebehind file. +# It should be rare (and used cautiously), but sometimes it makes sense to include code in Rmd +# that doesn't live in the codebehind R file. +``` + + +```{r load-data, echo=echo_chunks, results='show', message=message_chunks} +``` + + +```{r tweak-data, echo=echo_chunks, results='show', message=message_chunks} +``` + +Summary {.tabset .tabset-fade .tabset-pills} +=========================================================================== + +Notes +--------------------------------------------------------------------------- + +1. The current report covers `r nrow(ds)` month, with `r dplyr::n_distinct(ds$phase)` unique values for `month`. + + +Unanswered Questions +--------------------------------------------------------------------------- + + + +Answered Questions +--------------------------------------------------------------------------- + + +Graphs +=========================================================================== + + +Marginals +--------------------------------------------------------------------------- + +```{r marginals, echo=echo_chunks, message=message_chunks} +``` + + +Scatterplots +--------------------------------------------------------------------------- + +```{r scatterplots, echo=echo_chunks, message=message_chunks, fig.width=7} +``` + + +Models +=========================================================================== + +Model Exploration +--------------------------------------------------------------------------- +```{r models, echo=echo_chunks, message=message_chunks} +``` + + +Final Model +--------------------------------------------------------------------------- + +```{r model-results-table, echo=echo_chunks, message=message_chunks, warning=TRUE} +``` + +In the model that includes two predictors, the slope coefficent of `Miles per gallon` is `r summary(m2)$coefficients[2,1]`. + + +Session Information {#session-info} +=========================================================================== + +For the sake of documentation and reproducibility, the current report was rendered in the following environment. Click the line below to expand. + +
+ Environment +```{r session-info, echo=FALSE} +if( requireNamespace("devtools", quietly = TRUE) ) { + devtools::session_info() +} else { + sessionInfo() +} +``` +
+ +```{r session-duration, echo=FALSE} +report_render_duration_in_seconds <- as.integer(difftime(Sys.time(), report_render_start_time, units="secs")) +``` + +Report rendered by `r Sys.info()["user"]` at `r strftime(Sys.time(), "%Y-%m-%d, %H:%M %z")` in `r report_render_duration_in_seconds` seconds. diff --git a/analysis/month-performance-1/month-performance-1.html b/analysis/month-performance-1/month-performance-1.html new file mode 100644 index 0000000..3b8a3e6 --- /dev/null +++ b/analysis/month-performance-1/month-performance-1.html @@ -0,0 +1,1804 @@ + + + + + + + + + + + + + +Skeleton Report 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+
+
+
+ +
+ + + + + + + +

This report covers the analyses used in the ZZZ project (Marcus Mark, PI).

+ + + + + + + + +
+

1 Summary

+
+

1.1 Notes

+
    +
  1. The current report covers 4 month, with 2 unique values for month.
  2. +
+
+
+

1.2 Unanswered Questions

+
+
+

1.3 Answered Questions

+
+
+
+

2 Graphs

+
+

2.1 Marginals

+
+
+

2.2 Scatterplots

+

+
+
+
+

3 Models

+
+

3.1 Model Exploration

+

+Call:
+lm(formula = statin_proportion ~ 1 + post, data = ds)
+
+Residuals:
+         1          2          3          4 
+-1.364e-01  1.364e-01 -1.388e-17 -1.388e-17 
+
+Coefficients:
+            Estimate Std. Error t value Pr(>|t|)
+(Intercept)  0.86364    0.09642   8.957   0.0122
+post         0.13636    0.13636   1.000   0.4226
+
+Residual standard error: 0.1364 on 2 degrees of freedom
+Multiple R-squared:  0.3333,    Adjusted R-squared:      0 
+F-statistic:     1 on 1 and 2 DF,  p-value: 0.4226
+

+Call:
+glm(formula = statin_numerator/statin_denominator ~ 1 + post, 
+    family = quasipoisson, data = ds)
+
+Deviance Residuals: 
+      1        2        3        4  
+-0.1509   0.1431   0.0000   0.0000  
+
+Coefficients:
+            Estimate Std. Error t value Pr(>|t|)
+(Intercept)  -0.1466     0.1116  -1.313    0.320
+post          0.1466     0.1524   0.962    0.438
+
+(Dispersion parameter for quasipoisson family taken to be 0.0215311)
+
+    Null deviance: 0.063216  on 3  degrees of freedom
+Residual deviance: 0.043243  on 2  degrees of freedom
+AIC: NA
+
+Number of Fisher Scoring iterations: 4
+
+
+

3.2 Final Model

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EstimateStd. Errort valuePr(>|t|)
(Intercept)-0.150.11-1.310.32
post0.150.150.960.44
+

In the model that includes two predictors, the slope coefficent of Miles per gallon is 0.1466035.

+
+
+
+

4 Session Information

+

For the sake of documentation and reproducibility, the current report was rendered in the following environment. Click the line below to expand.

+
+

Environment

+
─ Session info ───────────────────────────────────────────────────────────────
+ setting  value                       
+ version  R version 3.6.2 (2019-12-12)
+ os       Ubuntu 19.10                
+ system   x86_64, linux-gnu           
+ ui       X11                         
+ language (EN)                        
+ collate  en_US.UTF-8                 
+ ctype    en_US.UTF-8                 
+ tz       America/Chicago             
+ date     2020-02-25                  
+
+─ Packages ───────────────────────────────────────────────────────────────────
+ package     * version date       lib source        
+ assertthat    0.2.1   2019-03-21 [1] CRAN (R 3.6.2)
+ backports     1.1.5   2019-10-02 [1] CRAN (R 3.6.2)
+ callr         3.4.2   2020-02-12 [1] CRAN (R 3.6.2)
+ cli           2.0.1   2020-01-08 [1] CRAN (R 3.6.2)
+ colorspace    1.4-1   2019-03-18 [1] CRAN (R 3.6.2)
+ config        0.3     2018-03-27 [1] CRAN (R 3.6.2)
+ crayon        1.3.4   2017-09-16 [1] CRAN (R 3.6.2)
+ desc          1.2.0   2018-05-01 [1] CRAN (R 3.6.2)
+ devtools      2.2.2   2020-02-17 [1] CRAN (R 3.6.2)
+ digest        0.6.25  2020-02-23 [1] CRAN (R 3.6.2)
+ dplyr         0.8.4   2020-01-31 [1] CRAN (R 3.6.2)
+ ellipsis      0.3.0   2019-09-20 [1] CRAN (R 3.6.2)
+ evaluate      0.14    2019-05-28 [1] CRAN (R 3.6.2)
+ fansi         0.4.1   2020-01-08 [1] CRAN (R 3.6.2)
+ farver        2.0.3   2020-01-16 [1] CRAN (R 3.6.2)
+ fs            1.3.1   2019-05-06 [1] CRAN (R 3.6.2)
+ ggplot2     * 3.2.1   2019-08-10 [1] CRAN (R 3.6.2)
+ glue          1.3.1   2019-03-12 [1] CRAN (R 3.6.2)
+ gtable        0.3.0   2019-03-25 [1] CRAN (R 3.6.2)
+ highr         0.8     2019-03-20 [1] CRAN (R 3.6.2)
+ hms           0.5.3   2020-01-08 [1] CRAN (R 3.6.2)
+ htmltools     0.4.0   2019-10-04 [1] CRAN (R 3.6.2)
+ import        1.1.0   2015-06-22 [1] CRAN (R 3.6.2)
+ knitr       * 1.28    2020-02-06 [1] CRAN (R 3.6.2)
+ labeling      0.3     2014-08-23 [1] CRAN (R 3.6.2)
+ lazyeval      0.2.2   2019-03-15 [1] CRAN (R 3.6.2)
+ lifecycle     0.1.0   2019-08-01 [1] CRAN (R 3.6.2)
+ magrittr      1.5     2014-11-22 [1] CRAN (R 3.6.2)
+ memoise       1.1.0   2017-04-21 [1] CRAN (R 3.6.2)
+ munsell       0.5.0   2018-06-12 [1] CRAN (R 3.6.2)
+ pillar        1.4.3   2019-12-20 [1] CRAN (R 3.6.2)
+ pkgbuild      1.0.6   2019-10-09 [1] CRAN (R 3.6.2)
+ pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 3.6.2)
+ pkgload       1.0.2   2018-10-29 [1] CRAN (R 3.6.2)
+ prettyunits   1.1.1   2020-01-24 [1] CRAN (R 3.6.2)
+ processx      3.4.2   2020-02-09 [1] CRAN (R 3.6.2)
+ ps            1.3.2   2020-02-13 [1] CRAN (R 3.6.2)
+ purrr         0.3.3   2019-10-18 [1] CRAN (R 3.6.2)
+ R6            2.4.1   2019-11-12 [1] CRAN (R 3.6.2)
+ Rcpp          1.0.3   2019-11-08 [1] CRAN (R 3.6.2)
+ readr         1.3.1   2018-12-21 [1] CRAN (R 3.6.2)
+ remotes       2.1.1   2020-02-15 [1] CRAN (R 3.6.2)
+ rlang         0.4.4   2020-01-28 [1] CRAN (R 3.6.2)
+ rmarkdown     2.1     2020-01-20 [1] CRAN (R 3.6.2)
+ rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.6.2)
+ scales        1.1.0   2019-11-18 [1] CRAN (R 3.6.2)
+ sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.6.2)
+ stringi       1.4.6   2020-02-17 [1] CRAN (R 3.6.2)
+ stringr       1.4.0   2019-02-10 [1] CRAN (R 3.6.2)
+ testthat      2.3.1   2019-12-01 [1] CRAN (R 3.6.2)
+ tibble        2.1.3   2019-06-06 [1] CRAN (R 3.6.2)
+ tidyselect    1.0.0   2020-01-27 [1] CRAN (R 3.6.2)
+ usethis       1.5.1   2019-07-04 [1] CRAN (R 3.6.2)
+ vctrs         0.2.3   2020-02-20 [1] CRAN (R 3.6.2)
+ withr         2.1.2   2018-03-15 [1] CRAN (R 3.6.2)
+ xfun          0.12    2020-01-13 [1] CRAN (R 3.6.2)
+ yaml          2.2.1   2020-02-01 [1] CRAN (R 3.6.2)
+
+[1] /home/wibeasley/R/x86_64-pc-linux-gnu-library/3.6
+[2] /usr/local/lib/R/site-library
+[3] /usr/lib/R/site-library
+[4] /usr/lib/R/library
+
+

Report rendered by wibeasley at 2020-02-25, 01:35 -0600 in 1 seconds.

+
+ + + +
+
+ +
+ + + + + + + + + + + + + + + + diff --git a/analysis/month-performance-1/month-performance-1.md b/analysis/month-performance-1/month-performance-1.md new file mode 100644 index 0000000..e6e9bad --- /dev/null +++ b/analysis/month-performance-1/month-performance-1.md @@ -0,0 +1,226 @@ +--- +title: Skeleton Report 1 +date: "Date: 2020-02-25" +output: + # radix::radix_article: # radix is a newer alternative that has some advantages over `html_document`. + html_document: + keep_md: yes + toc: 4 + toc_float: true + number_sections: true + css: ../common/styles.css # analysis/common/styles.css +--- + +This report covers the analyses used in the ZZZ project (Marcus Mark, PI). + + + + + + + + + + + + + + + + + + + + + + + + + +Summary {.tabset .tabset-fade .tabset-pills} +=========================================================================== + +Notes +--------------------------------------------------------------------------- + +1. The current report covers 4 month, with 2 unique values for `month`. + + +Unanswered Questions +--------------------------------------------------------------------------- + + + +Answered Questions +--------------------------------------------------------------------------- + + +Graphs +=========================================================================== + + +Marginals +--------------------------------------------------------------------------- + + + + +Scatterplots +--------------------------------------------------------------------------- + +![](figure-png/scatterplots-1.png) + + +Models +=========================================================================== + +Model Exploration +--------------------------------------------------------------------------- + +``` + +Call: +lm(formula = statin_proportion ~ 1 + post, data = ds) + +Residuals: + 1 2 3 4 +-1.364e-01 1.364e-01 -1.388e-17 -1.388e-17 + +Coefficients: + Estimate Std. Error t value Pr(>|t|) +(Intercept) 0.86364 0.09642 8.957 0.0122 +post 0.13636 0.13636 1.000 0.4226 + +Residual standard error: 0.1364 on 2 degrees of freedom +Multiple R-squared: 0.3333, Adjusted R-squared: 0 +F-statistic: 1 on 1 and 2 DF, p-value: 0.4226 +``` + +``` + +Call: +glm(formula = statin_numerator/statin_denominator ~ 1 + post, + family = quasipoisson, data = ds) + +Deviance Residuals: + 1 2 3 4 +-0.1509 0.1431 0.0000 0.0000 + +Coefficients: + Estimate Std. Error t value Pr(>|t|) +(Intercept) -0.1466 0.1116 -1.313 0.320 +post 0.1466 0.1524 0.962 0.438 + +(Dispersion parameter for quasipoisson family taken to be 0.0215311) + + Null deviance: 0.063216 on 3 degrees of freedom +Residual deviance: 0.043243 on 2 degrees of freedom +AIC: NA + +Number of Fisher Scoring iterations: 4 +``` + + +Final Model +--------------------------------------------------------------------------- + + +| | Estimate| Std. Error| t value| Pr(>|t|)| +|:-----------|--------:|----------:|-------:|------------------:| +|(Intercept) | -0.15| 0.11| -1.31| 0.32| +|post | 0.15| 0.15| 0.96| 0.44| + +In the model that includes two predictors, the slope coefficent of `Miles per gallon` is 0.1466035. + + +Session Information {#session-info} +=========================================================================== + +For the sake of documentation and reproducibility, the current report was rendered in the following environment. Click the line below to expand. + +
+ Environment + +``` +─ Session info ─────────────────────────────────────────────────────────────── + setting value + version R version 3.6.2 (2019-12-12) + os Ubuntu 19.10 + system x86_64, linux-gnu + ui X11 + language (EN) + collate en_US.UTF-8 + ctype en_US.UTF-8 + tz America/Chicago + date 2020-02-25 + +─ Packages ─────────────────────────────────────────────────────────────────── + package * version date lib source + assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.2) + backports 1.1.5 2019-10-02 [1] CRAN (R 3.6.2) + callr 3.4.2 2020-02-12 [1] CRAN (R 3.6.2) + cli 2.0.1 2020-01-08 [1] CRAN (R 3.6.2) + colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.6.2) + config 0.3 2018-03-27 [1] CRAN (R 3.6.2) + crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.2) + desc 1.2.0 2018-05-01 [1] CRAN (R 3.6.2) + devtools 2.2.2 2020-02-17 [1] CRAN (R 3.6.2) + digest 0.6.25 2020-02-23 [1] CRAN (R 3.6.2) + dplyr 0.8.4 2020-01-31 [1] CRAN (R 3.6.2) + ellipsis 0.3.0 2019-09-20 [1] CRAN (R 3.6.2) + evaluate 0.14 2019-05-28 [1] CRAN (R 3.6.2) + fansi 0.4.1 2020-01-08 [1] CRAN (R 3.6.2) + farver 2.0.3 2020-01-16 [1] CRAN (R 3.6.2) + fs 1.3.1 2019-05-06 [1] CRAN (R 3.6.2) + ggplot2 * 3.2.1 2019-08-10 [1] CRAN (R 3.6.2) + glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.2) + gtable 0.3.0 2019-03-25 [1] CRAN (R 3.6.2) + highr 0.8 2019-03-20 [1] CRAN (R 3.6.2) + hms 0.5.3 2020-01-08 [1] CRAN (R 3.6.2) + htmltools 0.4.0 2019-10-04 [1] CRAN (R 3.6.2) + import 1.1.0 2015-06-22 [1] CRAN (R 3.6.2) + knitr * 1.28 2020-02-06 [1] CRAN (R 3.6.2) + labeling 0.3 2014-08-23 [1] CRAN (R 3.6.2) + lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.6.2) + lifecycle 0.1.0 2019-08-01 [1] CRAN (R 3.6.2) + magrittr 1.5 2014-11-22 [1] CRAN (R 3.6.2) + memoise 1.1.0 2017-04-21 [1] CRAN (R 3.6.2) + munsell 0.5.0 2018-06-12 [1] CRAN (R 3.6.2) + pillar 1.4.3 2019-12-20 [1] CRAN (R 3.6.2) + pkgbuild 1.0.6 2019-10-09 [1] CRAN (R 3.6.2) + pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 3.6.2) + pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.6.2) + prettyunits 1.1.1 2020-01-24 [1] CRAN (R 3.6.2) + processx 3.4.2 2020-02-09 [1] CRAN (R 3.6.2) + ps 1.3.2 2020-02-13 [1] CRAN (R 3.6.2) + purrr 0.3.3 2019-10-18 [1] CRAN (R 3.6.2) + R6 2.4.1 2019-11-12 [1] CRAN (R 3.6.2) + Rcpp 1.0.3 2019-11-08 [1] CRAN (R 3.6.2) + readr 1.3.1 2018-12-21 [1] CRAN (R 3.6.2) + remotes 2.1.1 2020-02-15 [1] CRAN (R 3.6.2) + rlang 0.4.4 2020-01-28 [1] CRAN (R 3.6.2) + rmarkdown 2.1 2020-01-20 [1] CRAN (R 3.6.2) + rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.6.2) + scales 1.1.0 2019-11-18 [1] CRAN (R 3.6.2) + sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.2) + stringi 1.4.6 2020-02-17 [1] CRAN (R 3.6.2) + stringr 1.4.0 2019-02-10 [1] CRAN (R 3.6.2) + testthat 2.3.1 2019-12-01 [1] CRAN (R 3.6.2) + tibble 2.1.3 2019-06-06 [1] CRAN (R 3.6.2) + tidyselect 1.0.0 2020-01-27 [1] CRAN (R 3.6.2) + usethis 1.5.1 2019-07-04 [1] CRAN (R 3.6.2) + vctrs 0.2.3 2020-02-20 [1] CRAN (R 3.6.2) + withr 2.1.2 2018-03-15 [1] CRAN (R 3.6.2) + xfun 0.12 2020-01-13 [1] CRAN (R 3.6.2) + yaml 2.2.1 2020-02-01 [1] CRAN (R 3.6.2) + +[1] /home/wibeasley/R/x86_64-pc-linux-gnu-library/3.6 +[2] /usr/local/lib/R/site-library +[3] /usr/lib/R/site-library +[4] /usr/lib/R/library +``` +
+ + + +Report rendered by wibeasley at 2020-02-25, 01:35 -0600 in 1 seconds. diff --git a/config.yml b/config.yml index 3659e4c..458466e 100644 --- a/config.yml +++ b/config.yml @@ -1,28 +1,6 @@ default: # To be processed by Ellis lanes - path_subject_1_raw: "data-public/raw/subject-1.csv" - path_mlm_1_raw: "data-public/raw/mlm-1.csv" - - path_car_raw: "data-public/raw/mtcar.csv" - - path_ss_county: "data-public/metadata/ss-county.csv" - - # Central Database (produced by Ellis lanes). - path_database: "data-public/derived/db.sqlite3" - - # Derived Rectangles (produced by Ellis lanes). - - # Analysis-ready datasets (produced by scribes & consumed by analyses). - - path_county_derived: "data-public/derived/county.rds" - path_county_year_derived: "data-public/derived/county-year.rds" - path_mlm_1_derived: "data-public/derived/mlm-1.rds" - - path_te_county: "data-public/derived/te/te-county.rds" - path_te_county_month: "data-public/derived/te/te-county-month.rds" - - path_car_derived: "data-public/derived/car.rds" # Actually produced by an Ellis - - path_annotation: "data-public/metadata/cqi-annotation.csv" + path_month_raw: "data-public/raw/month-performance.csv" + intervention_start: !expr as.Date("2019-11-01") path_log_flow: !expr strftime(Sys.time(), "data-unshared/log/%Y/%Y-%m/flow-%Y-%m-%d--%H-%M-%S.log") diff --git a/data-public/raw/month-performance.csv b/data-public/raw/month-performance.csv new file mode 100644 index 0000000..130e659 --- /dev/null +++ b/data-public/raw/month-performance.csv @@ -0,0 +1,5 @@ +month,phase,stroke_numerator,stroke_denominator,antithromb_numerator,antithromb_denominator,anticoag_numerator,anticoag_denominator,statin_numerator,statin_denominator,smoking_numerator,smoking_denominator,cumulative_numerator,cumulative_denominator +2019-09-15,pre,15,22,20,21,1,2,16,22,6,13,, +2019-10-15,pre,,,3,3,2,2,3,3,3,3,, +2019-11-15,post,,,1,1,0,0,1,1,0,0,, +2019-12-15,post,,,5,5,0,0,5,5,2,2,, \ No newline at end of file