You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
time_var: String variable for indicating the time period. This should be in a standard format: 'YYYY', 'YYYY-Mm', 'YYYY-Kk'.
139
+
time_var: String variable for indicating the time period. This should be in a ISO 8601 standard format for example: 'YYYY', 'YYYY-MM', 'YYYY-MM-DD' or a SSB standard like 'YYYY-Qq'.
86
140
lower_bound: Float variable for the lower bound log factor for defining an outlier.
87
141
upper_bound: Float variable for the upper bound log factor for defining an outlier.
88
142
flag: String for the name of the flag variable to add to the data. Default is 'flag_thousand'.
@@ -93,13 +147,14 @@ def thousand_error(
93
147
Returns:
94
148
Data frame containing a flag variable for identified outliers or a dataframe containing only the outliers.
self.logger.warning("output_format is not valid. Use 'data' or 'outliers'")
188
+
output=data
189
+
mes="output_format is not valid. Use 'data' or 'outliers'. Returning 'data' format."
190
+
self.logger.warning(mes)
134
191
135
192
returnoutput
136
193
@@ -148,7 +205,7 @@ def accumulation_error(
148
205
149
206
Args:
150
207
y_var: The variable of insterest to check.
151
-
time_var: String variable for indicating the time period. This should be in a standard format: 'YYYY', 'YYYY-Mm', 'YYYY-Kk'.
208
+
time_var: String variable for indicating the time period. This should be in a ISO 8601 standard format for example: 'YYYY', 'YYYY-MM', 'YYYY-MM-DD' or a SSB standard like 'YYYY-Qq'.
152
209
error: Float for the allowed error factor.
153
210
flag: String for the name of the flag variable to add to the data. Default is 'flag_thousand'.
154
211
impute: Boolean for whether to impute the flagged observations. Default is False. (NOT IMPLEMENTED)
@@ -158,13 +215,14 @@ def accumulation_error(
158
215
Returns:
159
216
Data frame containing a flag variable for identified outliers or a dataframe containing only the outliers.
y_var: String for the name of the variable of interest to check.
221
-
time_var: String variable for indicating the time period. This should be in a standard format: 'YYYY', 'YYYY-Mm', 'YYYY-Kk'.
317
+
time_var: String variable for indicating the time period. This should be in a ISO 8601 standard format for example: 'YYYY', 'YYYY-MM', 'YYYY-MM-DD' or a SSB standard like 'YYYY-Qq'.
318
+
time_periods: List of strings for the two time periods to compare. Default None, in which case it is assumed that the time variable contains exactly two time preiods.
319
+
strata_var: String variable for stratification. Default is blank ("").
222
320
pu: Parameter that adjusts for different level of the variables. Default value 0.5.
223
321
pa: Parameter that adjusts for small differences between the median and the 1st or 3rd quartile. Default value 0.05.
224
-
pc: Parameter that controls the width of the confidence interval. Default value 4.
322
+
pc: Parameter that controls the width of the confidence interval. Default value 20.
225
323
percentiles: Tuple for percentile values to use.
226
324
flag: String variable name to use to indicate outliers.
227
325
output_format: String for format to return. Can be 'wide','long','outliers'.
0 commit comments