-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwave_report.Rmd
56 lines (50 loc) · 1.56 KB
/
wave_report.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: 'EX1 Experiment for Google users'
author: 'Mint Metrics'
date: Knitted `r format(Sys.Date(),format = "%d %B %Y")`
output:
html_document:
toc: true
toc_float: true
theme: sandstone
---
<style type="text/css">@media print {#TOC {display: none;}}</style>
```{r includes, include=FALSE, echo=FALSE, cache=FALSE, warning=FALSE}
# TO CONFIGURE: Path to Redshift/PostgreSQL connection (must expose "con" connection variable in this namespace)
for (lib in c("reports","plots","tables","queries_snowplow_redshift","experiment_sizing")) {
source(paste0("./mojito-functions/",lib,".R"))
}
```
```{r options, echo=FALSE, include=FALSE, message=FALSE, warning=FALSE}
wave_params <- list(
client_id = "mintmetrics",
wave_id = "ex1",
start_date = "2019-05-15 09:19:45",
stop_date = "2019-06-05 14:29:00",
time_grain = "days",
subject = "usercookie",
recipes = c("Control", "Treatment")
)
```
**Started: ** `r wave_params$start_date`
**Ended: ** `r mojitoReportDates(wave_params)`
# Summary
```{r, echo=FALSE, message=FALSE, warning=FALSE, results='asis', fig.height=3, fig.width=10, fig.align='center'}
goalList <- list(
list(
title = "Transactions",
goal = "purchase",
operand = "="
),
list(
title = "Page views",
goal = "page_view %",
operand = "like"
)
)
goalList <- mojitoFullKnit(wave_params, goal_list = goalList)
```
# Test diagnostics
```{r, echo=FALSE, message=FALSE, warning=FALSE, results='asis', fig.height=3, fig.width=10, fig.align='center'}
mojitoDiagnostics(wave_params, lapply(goalList, "[")[[1]]$result)
```