|
1 | 1 | # revision_summary works for dummy datasets |
2 | 2 |
|
3 | 3 | Code |
4 | | - dummy_ex %>% revision_summary() %>% print(n = 10, width = 300) |
| 4 | + rs1 |
5 | 5 | Message |
6 | | - Min lag (time to first version): |
| 6 | + |
| 7 | + -- An epi_archive spanning 2020-01-01 to 2020-01-01. -- |
| 8 | + |
| 9 | + -- Min lag (time to first version): |
7 | 10 | Output |
8 | 11 | min median mean max |
9 | 12 | 0 days 1 days 1.6 days 4 days |
10 | 13 | Message |
11 | | - Fraction of epi_key+time_values with |
| 14 | + |
| 15 | + -- Fraction of epi_key + time_values with |
12 | 16 | No revisions: |
13 | | - * 3 out of 7 (42.86%) |
| 17 | + * 0 out of 7 (0%) |
14 | 18 | Quick revisions (last revision within 3 days of the `time_value`): |
15 | 19 | * 4 out of 7 (57.14%) |
16 | 20 | Few revisions (At most 3 revisions for that `time_value`): |
17 | | - * 6 out of 7 (85.71%) |
18 | | - Fraction of revised epi_key+time_values which have: |
| 21 | + * 0 out of 7 (0%) |
| 22 | + |
| 23 | + -- Fraction of revised epi_key + time_values which have: |
19 | 24 | Less than 0.1 spread in relative value: |
20 | 25 | * 1 out of 4 (25%) |
21 | 26 | Spread of more than 5.1 in actual value (when revised): |
22 | 27 | * 3 out of 4 (75%) |
23 | | - Days until within 20% of the latest value: |
| 28 | + |
| 29 | + -- Days until within 20% of the latest value: |
24 | 30 | Output |
25 | 31 | min median mean max |
26 | 32 | 0 days 3 days 6.9 days 19 days |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | + Code |
| 37 | + rs1$revision_behavior %>% print(n = 10, width = 300) |
| 38 | + Output |
27 | 39 | # A tibble: 7 x 11 |
28 | 40 | time_value geo_value n_revisions min_lag max_lag lag_near_latest spread |
29 | 41 | <date> <chr> <dbl> <drtn> <drtn> <drtn> <dbl> |
|
47 | 59 | --- |
48 | 60 |
|
49 | 61 | Code |
50 | | - dummy_ex %>% revision_summary(drop_nas = FALSE) %>% print(n = 10, width = 300) |
| 62 | + rs2 |
51 | 63 | Message |
52 | | - Min lag (time to first version): |
| 64 | + |
| 65 | + -- An epi_archive spanning 2020-01-01 to 2020-01-01. -- |
| 66 | + |
| 67 | + -- Min lag (time to first version): |
53 | 68 | Output |
54 | 69 | min median mean max |
55 | 70 | 0 days 1 days 1.4 days 4 days |
56 | 71 | Message |
57 | 72 | Fraction of all versions that are `NA`: |
58 | 73 | * 2 out of 19 (10.53%) |
59 | | - Fraction of epi_key+time_values with |
| 74 | + |
| 75 | + -- Fraction of epi_key + time_values with |
60 | 76 | No revisions: |
61 | | - * 2 out of 7 (28.57%) |
| 77 | + * 0 out of 7 (0%) |
62 | 78 | Quick revisions (last revision within 3 days of the `time_value`): |
63 | 79 | * 4 out of 7 (57.14%) |
64 | 80 | Few revisions (At most 3 revisions for that `time_value`): |
65 | | - * 6 out of 7 (85.71%) |
66 | | - Fraction of revised epi_key+time_values which have: |
| 81 | + * 0 out of 7 (0%) |
| 82 | + |
| 83 | + -- Fraction of revised epi_key + time_values which have: |
67 | 84 | Less than 0.1 spread in relative value: |
68 | 85 | * 2 out of 5 (40%) |
69 | 86 | Spread of more than 5.1 in actual value (when revised): |
70 | 87 | * 3 out of 5 (60%) |
71 | | - Days until within 20% of the latest value: |
| 88 | + |
| 89 | + -- Days until within 20% of the latest value: |
72 | 90 | Output |
73 | 91 | min median mean max |
74 | 92 | 0 days 3 days 6.9 days 19 days |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | + Code |
| 97 | + rs2$revision_behavior %>% print(n = 10, width = 300) |
| 98 | + Output |
75 | 99 | # A tibble: 7 x 11 |
76 | 100 | time_value geo_value n_revisions min_lag max_lag lag_near_latest spread |
77 | 101 | <date> <chr> <dbl> <drtn> <drtn> <drtn> <dbl> |
|
95 | 119 | --- |
96 | 120 |
|
97 | 121 | Code |
98 | | - dummy_ex_weekly %>% revision_summary(drop_nas = FALSE) %>% print(n = 10, width = 300) |
| 122 | + rs3 |
99 | 123 | Message |
100 | | - Min lag (time to first version): |
| 124 | + |
| 125 | + -- An epi_archive spanning 2020-01-01 to 2020-01-01. -- |
| 126 | + |
| 127 | + -- Min lag (time to first version): |
101 | 128 | Output |
102 | 129 | min median mean max |
103 | 130 | 0 weeks 1 weeks 1.4 weeks 4 weeks |
104 | 131 | Message |
105 | 132 | Fraction of all versions that are `NA`: |
106 | 133 | * 2 out of 19 (10.53%) |
107 | | - Fraction of epi_key+time_values with |
| 134 | + |
| 135 | + -- Fraction of epi_key + time_values with |
108 | 136 | No revisions: |
109 | | - * 2 out of 7 (28.57%) |
| 137 | + * 0 out of 7 (0%) |
110 | 138 | Quick revisions (last revision within 1 week of the `time_value`): |
111 | 139 | * 2 out of 7 (28.57%) |
112 | 140 | Few revisions (At most 3 revisions for that `time_value`): |
113 | | - * 6 out of 7 (85.71%) |
114 | | - Fraction of revised epi_key+time_values which have: |
| 141 | + * 0 out of 7 (0%) |
| 142 | + |
| 143 | + -- Fraction of revised epi_key + time_values which have: |
115 | 144 | Less than 0.1 spread in relative value: |
116 | 145 | * 2 out of 5 (40%) |
117 | 146 | Spread of more than 5.1 in actual value (when revised): |
118 | 147 | * 3 out of 5 (60%) |
119 | | - Weeks until within 20% of the latest value: |
| 148 | + |
| 149 | + -- Weeks until within 20% of the latest value: |
120 | 150 | Output |
121 | 151 | min median mean max |
122 | 152 | 0 weeks 3 weeks 6.9 weeks 19 weeks |
| 153 | + |
| 154 | +--- |
| 155 | + |
| 156 | + Code |
| 157 | + rs3$revision_behavior %>% print(n = 10, width = 300) |
| 158 | + Output |
123 | 159 | # A tibble: 7 x 11 |
124 | 160 | time_value geo_value n_revisions min_lag max_lag lag_near_latest spread |
125 | 161 | <date> <chr> <dbl> <drtn> <drtn> <drtn> <dbl> |
|
143 | 179 | --- |
144 | 180 |
|
145 | 181 | Code |
146 | | - dummy_ex_yearmonthly %>% revision_summary(drop_nas = FALSE) %>% print(n = 10, |
147 | | - width = 300) |
| 182 | + rs4 |
148 | 183 | Message |
149 | | - Min lag (time to first version): |
| 184 | + |
| 185 | + -- An epi_archive spanning 2020 Jan to 2020 Jan. -- |
| 186 | + |
| 187 | + -- Min lag (time to first version): |
150 | 188 | Output |
151 | 189 | min median mean max |
152 | 190 | 0 1 1.4 4 |
153 | 191 | Message |
154 | 192 | Fraction of all versions that are `NA`: |
155 | 193 | * 2 out of 19 (10.53%) |
156 | | - Fraction of epi_key+time_values with |
| 194 | + |
| 195 | + -- Fraction of epi_key + time_values with |
157 | 196 | No revisions: |
158 | | - * 2 out of 7 (28.57%) |
| 197 | + * 0 out of 7 (0%) |
159 | 198 | Quick revisions (last revision within 1 month of the `time_value`): |
160 | 199 | * 2 out of 7 (28.57%) |
161 | 200 | Few revisions (At most 3 revisions for that `time_value`): |
162 | | - * 6 out of 7 (85.71%) |
163 | | - Fraction of revised epi_key+time_values which have: |
| 201 | + * 0 out of 7 (0%) |
| 202 | + |
| 203 | + -- Fraction of revised epi_key + time_values which have: |
164 | 204 | Less than 0.1 spread in relative value: |
165 | 205 | * 2 out of 5 (40%) |
166 | 206 | Spread of more than 5.1 in actual value (when revised): |
167 | 207 | * 3 out of 5 (60%) |
168 | | - Months until within 20% of the latest value: |
| 208 | + |
| 209 | + -- Months until within 20% of the latest value: |
169 | 210 | Output |
170 | 211 | min median mean max |
171 | 212 | 0 3 6.9 19 |
| 213 | + |
| 214 | +--- |
| 215 | + |
| 216 | + Code |
| 217 | + rs4$revision_behavior %>% print(n = 10, width = 300) |
| 218 | + Output |
172 | 219 | # A tibble: 7 x 11 |
173 | 220 | time_value geo_value n_revisions min_lag max_lag lag_near_latest spread |
174 | 221 | <mth> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> |
|
192 | 239 | --- |
193 | 240 |
|
194 | 241 | Code |
195 | | - dummy_ex_integerly %>% revision_summary(min_waiting_period = 60, |
196 | | - quick_revision = 3, drop_nas = FALSE) %>% print(n = 10, width = 300) |
| 242 | + rs5 |
197 | 243 | Message |
198 | | - Min lag (time to first version): |
| 244 | + |
| 245 | + -- An epi_archive spanning 1 to 1. -- |
| 246 | + |
| 247 | + -- Min lag (time to first version): |
199 | 248 | Output |
200 | 249 | min median mean max |
201 | 250 | 0 1 1.4 4 |
202 | 251 | Message |
203 | 252 | Fraction of all versions that are `NA`: |
204 | 253 | * 2 out of 19 (10.53%) |
205 | | - Fraction of epi_key+time_values with |
| 254 | + |
| 255 | + -- Fraction of epi_key + time_values with |
206 | 256 | No revisions: |
207 | | - * 2 out of 7 (28.57%) |
| 257 | + * 0 out of 7 (0%) |
208 | 258 | Quick revisions (last revision within 3 time steps of the `time_value`): |
209 | 259 | * 4 out of 7 (57.14%) |
210 | 260 | Few revisions (At most 3 revisions for that `time_value`): |
211 | | - * 6 out of 7 (85.71%) |
212 | | - Fraction of revised epi_key+time_values which have: |
| 261 | + * 0 out of 7 (0%) |
| 262 | + |
| 263 | + -- Fraction of revised epi_key + time_values which have: |
213 | 264 | Less than 0.1 spread in relative value: |
214 | 265 | * 2 out of 5 (40%) |
215 | 266 | Spread of more than 5.1 in actual value (when revised): |
216 | 267 | * 3 out of 5 (60%) |
217 | | - Time Steps until within 20% of the latest value: |
| 268 | + |
| 269 | + -- Time Steps until within 20% of the latest value: |
218 | 270 | Output |
219 | 271 | min median mean max |
220 | 272 | 0 3 6.9 19 |
| 273 | + |
| 274 | +--- |
| 275 | + |
| 276 | + Code |
| 277 | + rs5$revision_behavior %>% print(n = 10, width = 300) |
| 278 | + Output |
221 | 279 | # A tibble: 7 x 11 |
222 | 280 | time_value geo_value n_revisions min_lag max_lag lag_near_latest spread |
223 | 281 | <dbl> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> |
|
0 commit comments