NOTE: What is the historical trend for nutrition incentive dollars in OHIO What are the state investments in nutrition incentive dollars in Ohio?
What is the association/relationship between monthly statewide nutrition incentive dollar distribution and month-to-month growth of monthly SNAP distribution dollars from 2017 to 2021 at FMs participating in GusNIP in Ohio?
NOTE: Work on Objectives (This have to be more specific)
Describe monthly SNAP dollars distribution, nutrition incentive dollar distribution, and month-to-month growth of SNAP dollars distribution at participating FM by location (rural vs urban, network-membership), market size (number of vendors).
Produce a correlation matrix between FM size (number of vendors) and Volume of SNAP sales.
Model/Assess the correlation/association of the amount of monthly statewide nutrition incentive dollars and month-to-month growth of SNAP distribution dollars at FM from 2017 to 2021 adjusted by relevant FM and contextual characteristics
Outcome Variables The key outcome in this study is month-to-month growth of mean monthly SNAP dollars distribution at farmers’ markets in Ohio, from 2017 to 2019. Monthly SNAP distributions is defined as the amount of SNAP dollars distributed in a month at farmers’ market included in the study. Month-to-Month growth of monthly SNAP dollars distribution is calculated as follows:
Month-to-month growth of mean SNAP Sales (%). The outcome describes how large an increase in mean monthly SNAP dollars distributions in a given month compared to the prior month. The formula here is M2Mmgrowth = ((Snap.Sales of current month/Snap.slaes of prior month) - 1)%100.
Mean SNAP dollar distributed at FMs. This outcomes describes the total mean monthly distributions of SNAP dollars at FMs in Ohio.
Mean number of new customers. This variable describes the mean number of new customers in a given month.
Mean number of transactions. This variable describes the mean number of SNAP transactions in a given month.
Important Predictor Variable(s) || Relationship between Outcome and theorethically important predictor variables
This study is to assess factors likely driving the growth of SNAP dollars distributed at FM in Ohio. We hypothesize that the following factors are important predictors of the outcome:
Mean statewide nutrition incentive dollars distributed at FMs. This variable describes the total mean monthly distributions of statewide nutrition incentive dollars distributed at FMs in Ohio.
Mean number of new customers. This variable describes the mean number of new customers in a given month.
Mean number of transactions. This variable describes the mean number of SNAP transactions in a given month.
Mean number of FM days. This variable describes the mean number of days Farmers’ Markets are opened for business in Ohio.
The following is the analysis plan for this AIM. I’m using Rob J Hyndman and George Athanasopoulos’ approach to modeling time series. https://otexts.com/fpp3/index.html
This is an useful flowchart for ARIMA modeling and forecasting.
The main data set used to address the research questions in this AIM are daily SNAP transaction reports from farmers’ markets utilizing the FMTracks platform. The FMTracks app was developed by Dr. Darcy Freedman and team, to track SNAP distribution, and nutrition incentive dollars distribution at participating FMs. FMtracks is the app used by Farmers’ Markets participating in the SNAP nutrition incentive program in Ohio. The raw data was re-downloaded from FMTracks by Roberto Martinez on Feb 01 of 2023.
Total number of rows: 14,488. This represents unique daily transactions for 148 unique Farmers’ Markets from year 2016 to year 2021. This dataset contains no missing data on SNAP transactions. (CHECK THESE NUMBERS)
FMTracks data was enriched by merging data at the census tract level from: 1. Geographic Identifiers (GEOIDs). The Census Bureau and other state and federal agencies are responsible for assigning geographic identifiers, or GEOIDs, to geographic entities to facilitate the organization, presentation, and exchange of geographic and statistical data. GEOIDs are numeric codes that uniquely identify all administrative/legal and statistical geographic areas for which the Census Bureau tabulates data. https://www.census.gov/programs-surveys/geography/guidance/geo-identifiers.html
Census tract socioeconomic and demographic information found in the American Community Survey.
Rural-Urban Commuting Area Codes. The rural-urban commuting area (RUCA) codes classify U.S. census tracts using measures of population density, urbanization, and daily commuting. A second data-set applies 2010 RUCA classifications to ZIP code areas by transferring RUCA values from the census tracts that comprise them. The most recent RUCA codes are based on data from the 2010 decennial census and the 2006–10 American Community Survey. The classification contains two levels. Whole numbers (1–10) delineate metropolitan, metropolitan, small town, and rural commuting areas based on the size and direction of the primary (largest) commuting flows. These 10 codes are further subdivided based on secondary commuting flows, providing flexibility in combining levels to meet varying definition needs and preferences. Descriptions of the codes are found within the data files, and also in the Documentation.
The USDA Food Access Research Atlas. The FARA presents an overview of food access indicators for low-income and other census tracts using different measures of supermarket accessibility. It provides food access data for populations within census tracts, and Offers census-tract-level data on food access that can be downloaded for community planning or research purposes.
The data-set contain the following variables.
| Variable Name | Type. | Variable Description |
|---|---|---|
| Month-to-month Grow SNAP | Numerical | |
| Market.Name | Categorical | |
| Weekly_Date | Date | |
| Paid Staff | Numerical | |
| Volunteers | Numerical | |
| F&VProducers/Vendors | Numerical | |
| FM_Size | Categorical | |
| Network | Categorical | |
| SNAP Sales | Numerical | |
| Incentives.Distributed | Numerical | |
| Urban | Categorical | |
| ADI Area Deprivation Ind | Numerical (Score) | |
| LILATracts_1And10 | Categorical | |
| Received_Food_stampsSNAP | Numerical. | |
| Number of FMs | Numerical | |
| . Transactions | Numerical | |
| New SNAP Customers. | Numerical |
Other Potential Variables (Check with Darcy) PM-SNAP Redeemed PM-F&V-only SNAP Incentives Redeemed Gross Sales for All Vendors Head Count ‘#.New.Federal.Benefit.Customers’
Loading FMTracks Data
Merging data all years of data into one data-set.
Loading the USDA Food Access Research Atlas & selecting variables of interest.
Loading GEOID information for FMs
Loading Ruca Codes
Installing Census Bureau API key
## [1] "7a4d78cf8f33e385cfc1d3526fa3baff5924da94"
When to Use 1-year, 3-year, or 5-year Estimates Choosing which data-set involves more than simply considering the population size in your area. You must think about the balance between currency and sample size/reliability/precision. For details, research implications, and examples, see “Understanding and Using ACS Single-Year and Multiyear Estimates,” in section 3 of the General Data Users Handbook.
Use 5-year Estimates Precision is more important than currency Analyzing very small populations Examining tracts and other smaller geographies because 1-year estimates are not available
The following are inclusion criteria for the study.
The FMTracks data-set contains 148 Farmers’ Markets. These Farmers’ Markets reported distribution of SNAP Dollars and the nutrition incentive dollars at some point between 2017 and 2021. After applying the first inclusion/exclusion criteria the list is reduced to 119 Farmers’ Markets. In the end 71 FM are included in the sample.
Code Creating Filter: SNAP Sales = zero
Code || Creating Filter || Two consecutive years of Transactions
## [1] "BMM 2016 - Other"
## [2] "BMM 2016 - Thurs- Friendly Inn Settlement"
## [3] "BMM 2016 Friday - Rockefeller Park Towers"
## [4] "BMM 2016 Monday - Murtis Taylor"
## [5] "BMM 2016 Tues/Wed - Care Alliance"
## [6] "BMM 2016 Tues/Wed - Steeplechase Apt"
## [7] "BMM 2016 Tuesday - Glenhaven Apt"
## [8] "BMM 2016 Tuesday - University Tower Apt"
## [9] "BMM 2016 Wednesday - Doan Classroom Apt"
## [10] "Canton Farmers' Market"
## [11] "Cultivate Co-op Cafe"
## [12] "Fibonacci's Mount Healthy Farmers' Market"
## [13] "Franklinton Farms Market"
## [14] "Garrettsville Farmers' Market"
## [15] "Hamilton's Historic Farmers' Market"
## [16] "Hartman Heimstytte Family Farms"
## [17] "Homefull Mobile Grocery"
## [18] "Howland Farmers Market"
## [19] "Idora Neighborhood Farmers Market"
## [20] "Indian Lake Farmers Market"
## [21] "Lancaster Farmers Market"
## [22] "League Park Market Place"
## [23] "Market Night on Arlington"
## [24] "Market on the Green (Whitehall)"
## [25] "Meigs County Farmers Market"
## [26] "Mission of Mary"
## [27] "MyWhy West End Market"
## [28] "Our Harvest Cooperative"
## [29] "Piqua Community Farmers Market"
## [30] "Reading Farmers Market"
## [31] "The Narrow Way Farm"
## [32] "Thursday - Friendly Inn"
## [33] "Tiffin Seneca Farmers' Market"
## [34] "Union County Farmers Market, Marysville"
## [35] "Warren Farmers Market"
## [36] "Way Farms Waverly Market"
## [37] "Westerville Farmers Market"
## [38] "Youngstown Farmers Market"
## [39] "Ω Bridgeport Mobile Market"
## [40] "Ω Cleveland Botanical Garden Farm Stand Buckeye Woodland"
## [41] "Ω Cleveland Botanical Garden Farm Stand Central"
## [42] "Ω Cleveland Botanical Gardens Farm Stand Fairfax"
## [43] "Ω Cleveland Botanical Gardens Farm Stand Midtown"
## [44] "Ω Cleveland Botanical Gardens Farm Stand Slavic Village"
## [45] "Ω Clintonville Farmers Market - Wednesday"
## [46] "Ω Clintonville Farmers' Market - Winter Drive Thru"
## [47] "Ω College Hill Farmers Market"
## [48] "Ω Dublin Farmers' Market"
## [49] "Ω DUMMY MARKET"
## [50] "Ω Euclid Farmers Market"
## [51] "Ω Findlay Farm Stand at Evanston"
## [52] "Ω Findlay Farm Stand at Price Hill"
## [53] "Ω Findlay Farm Stand at Walnut Hills"
## [54] "Ω Findlay Farmers Market – Sunday"
## [55] "Ω Gabriel's Place"
## [56] "Ω Gateway 105 at NEON"
## [57] "Ω Good Earth Farm Stand - Thursday"
## [58] "Ω Linden Farmers Market"
## [59] "Ω Madisonville Garden Market"
## [60] "Ω Marion Ohio Market"
## [61] "Ω Medina Farmers' Market - Tuesday"
## [62] "Ω Nationwide Children's Hospital"
## [63] "Ω Nelsonville Farmers Market"
## [64] "Ω North Union Farmers Market at Cleveland Clinic Beachwood"
## [65] "Ω North Union Farmers Market at Pinecrest"
## [66] "Ω North Union Farmers Market at Public Square"
## [67] "Ω Oberlin Farmers Market"
## [68] "Ω Ohio City Farm Stand"
## [69] "Ω Ohio City Farm Stand - Friday"
## [70] "Ω Pearl Market - Tuesday - OLD, DO NOT USE"
## [71] "Ω Richwood Farmers Market"
## [72] "Ω St. Clair Farmers Market"
## [73] "Ω Stark Fresh Corridor Farmers Market"
## [74] "Ω Village Family Farms"
## [75] "Ω Village Family Farms at Euclid Beach Villa"
## [76] "Ω Wellington Farmers Market"
## [77] "Ω Yellowbird Foodshed"
## Warning in table1.formula(~SNAP.Sales + Transaction.Sales +
## SNAP.Incentives.Distributed + : Terms to the right of '|' in formula 'x' define
## table columns and are expected to be factors with meaningful labels.
| 2016 (N=43) |
2017 (N=28) |
2018 (N=16) |
2019 (N=10) |
2020 (N=16) |
2021 (N=22) |
|
|---|---|---|---|---|---|---|
| SNAP.Sales | ||||||
| Mean (SD) | 192 (284) | 159 (256) | 318 (494) | 114 (126) | 908 (1770) | 2070 (2740) |
| Median [Min, Max] | 87.0 [0, 1250] | 69.4 [0, 978] | 79.0 [4.50, 1740] | 73.4 [13.5, 450] | 417 [0, 7270] | 1060 [0, 10600] |
| Transaction.Sales | ||||||
| Mean (SD) | 688 (1180) | 400 (574) | 1040 (2780) | 157 (131) | 917 (1770) | 2220 (3020) |
| Median [Min, Max] | 293 [3.00, 5630] | 155 [0, 2530] | 79.0 [4.50, 11200] | 120 [36.0, 450] | 417 [0, 7270] | 1060 [0, 10600] |
| SNAP.Incentives.Distributed | ||||||
| Mean (SD) | 156 (270) | 123 (179) | 280 (425) | 96.4 (108) | 766 (1600) | 1590 (2330) |
| Median [Min, Max] | 72.0 [0, 1470] | 63.9 [0, 740] | 79.0 [4.50, 1380] | 66.8 [13.5, 394] | 317 [0, 6580] | 941 [0, 9690] |
| newcustomers | ||||||
| Mean (SD) | 9.49 (15.5) | 8.00 (11.0) | 24.5 (55.0) | 3.70 (3.16) | 24.4 (64.1) | 34.9 (56.8) |
| Median [Min, Max] | 6.00 [0, 76.0] | 4.00 [0, 47.0] | 6.00 [0, 222] | 4.00 [0, 9.00] | 4.50 [0, 262] | 16.5 [0, 262] |
| vendors | ||||||
| Mean (SD) | 92.6 (153) | 98.8 (182) | 88.9 (171) | 113 (157) | 244 (325) | 301 (306) |
| Median [Min, Max] | 18.0 [0, 800] | 18.0 [0, 760] | 10.0 [0, 609] | 12.5 [5.00, 435] | 102 [0, 1130] | 250 [0, 1050] |
| snapvendors | ||||||
| Mean (SD) | 71.8 (110) | 75.9 (132) | 51.9 (85.3) | 68.1 (80.1) | 173 (250) | 200 (228) |
| Median [Min, Max] | 18.0 [0, 460] | 17.0 [0, 437] | 10.0 [0, 273] | 12.5 [5.00, 195] | 87.0 [0, 840] | 191 [0, 945] |
Adding ADI
Variables
Table 1: Descriptive Statistics of Farmers’ Market offering SNAP Incentives, Ohio, 2016 to 2021
Results: Table 1
Creating a function to compute the p-value for continuous or categorical variables.
| 2016 (N=37) |
2017 (N=43) |
2018 (N=52) |
2019 (N=61) |
2020 (N=58) |
2021 (N=57) |
|
|---|---|---|---|---|---|---|
| GPM | ||||||
| Mean (SD) | NA (NA) | 40.5 (86.3) | 37.3 (68.4) | 41.9 (170) | 261 (569) | 59.8 (127) |
| Median [Min, Max] | NA [NA, NA] | 14.2 [-57.6, 387] | 19.9 [-90.9, 257] | -5.93 [-52.9, 1110] | 112 [-99.6, 3950] | 31.5 [-89.4, 719] |
| Missing | 37 (100%) | 6 (14.0%) | 9 (17.3%) | 9 (14.8%) | 0 (0%) | 0 (0%) |
| SNAP.Sales | ||||||
| Mean (SD) | 3150 (4020) | 3170 (4360) | 3280 (4310) | 3020 (3970) | 6900 (9340) | 8730 (10700) |
| Median [Min, Max] | 1620 [199, 20000] | 1480 [122, 20000] | 1580 [115, 20200] | 1190 [158, 20300] | 3050 [15.0, 44200] | 4120 [482, 49200] |
| Transaction.Sales | ||||||
| Mean (SD) | 6700 (11500) | 5590 (9310) | 5610 (9170) | 4720 (8880) | 8460 (13000) | 10800 (15400) |
| Median [Min, Max] | 2330 [199, 56700] | 1730 [155, 41400] | 1590 [115, 41600] | 1390 [158, 44900] | 3170 [15.0, 75700] | 4460 [538, 82300] |
| SNAP.Incentives.Distributed | ||||||
| Mean (SD) | 2220 (3470) | 2210 (3230) | 2860 (3710) | 2740 (3640) | 5950 (8260) | 7200 (9010) |
| Median [Min, Max] | 1090 [134, 20000] | 1090 [90.0, 18300] | 1350 [0, 19100] | 1060 [144, 19800] | 2650 [15.0, 42400] | 3270 [196, 45000] |
| newcustomers | ||||||
| Mean (SD) | 60.9 (57.5) | 73.2 (128) | 60.2 (88.2) | 60.1 (79.8) | 91.3 (127) | 110 (139) |
| Median [Min, Max] | 41.0 [0, 198] | 32.0 [0, 700] | 34.0 [0, 462] | 28.0 [2.00, 382] | 43.0 [0, 651] | 50.0 [3.00, 697] |
| vendors | ||||||
| Mean (SD) | 1250 (1780) | 1250 (1820) | 1420 (2580) | 1300 (2360) | 1260 (2470) | 1480 (3520) |
| Median [Min, Max] | 570 [0, 9370] | 552 [0, 9370] | 540 [2.00, 14500] | 525 [0, 13700] | 564 [0, 17100] | 625 [69.0, 25800] |
| snapvendors | ||||||
| Mean (SD) | 839 (967) | 842 (1080) | 884 (1160) | 817 (1090) | 3590 (16600) | 3740 (16100) |
| Median [Min, Max] | 440 [0, 4620] | 442 [0, 5280] | 462 [2.00, 4840] | 392 [0, 5050] | 481 [0, 126000] | 598 [69.0, 121000] |
| Urban | ||||||
| 0 | 2 (5.4%) | 3 (7.0%) | 3 (5.8%) | 3 (4.9%) | 3 (5.2%) | 3 (5.3%) |
| 1 | 35 (94.6%) | 40 (93.0%) | 49 (94.2%) | 58 (95.1%) | 55 (94.8%) | 54 (94.7%) |
| LILATracts_1And10 | ||||||
| Mean (SD) | 0.0811 (0.277) | 0.0698 (0.258) | 0.0769 (0.269) | 0.0656 (0.250) | 0.0690 (0.256) | 0.0526 (0.225) |
| Median [Min, Max] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] |
| HUNVFlag | ||||||
| Mean (SD) | 0.351 (0.484) | 0.395 (0.495) | 0.365 (0.486) | 0.344 (0.479) | 0.362 (0.485) | 0.333 (0.476) |
| Median [Min, Max] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] |
| LowIncomeTracts | ||||||
| Mean (SD) | 0.541 (0.505) | 0.558 (0.502) | 0.558 (0.502) | 0.541 (0.502) | 0.534 (0.503) | 0.509 (0.504) |
| Median [Min, Max] | 1.00 [0, 1.00] | 1.00 [0, 1.00] | 1.00 [0, 1.00] | 1.00 [0, 1.00] | 1.00 [0, 1.00] | 1.00 [0, 1.00] |
| ADI | ||||||
| Mean (SD) | 104 (26.1) | 104 (26.0) | 105 (24.5) | 104 (24.5) | 105 (24.5) | 103 (24.5) |
| Median [Min, Max] | 106 [56.5, 146] | 106 [56.5, 146] | 106 [56.5, 146] | 106 [56.5, 146] | 105 [56.5, 146] | 104 [56.5, 146] |
| pstaff | ||||||
| 0 | 8 (21.6%) | 6 (14.0%) | 12 (23.1%) | 8 (13.1%) | 9 (15.5%) | 7 (12.3%) |
| 1 | 29 (78.4%) | 37 (86.0%) | 40 (76.9%) | 53 (86.9%) | 49 (84.5%) | 50 (87.7%) |
Outcome Variables The key outcome in this study is month-to-month growth of mean monthly SNAP dollars distribution at farmers’ markets in Ohio, from 2017 to 2019. Monthly SNAP distributions is defined as the amount of SNAP dollars distributed in a month at farmers’ market included in the study. Month-to-Month growth of monthly SNAP dollars distribution is calculated as follows:
To understand month-to-month growth of mean SNAP sales in ohio, we need to study the following time series. We hypothesize that these time series are highly correlated with the main outcome. Nontheless, there may be a relatinship between the nutrition incentive dollars distribution at FM in Ohio, and the number of new customers and total number of transactions at the FM. We expect that the knowledge among potential customers about the statewid nutrition incentive program would incentivize them to use their SNAP dollars at Farmers’ Markets, thus increasing the number of new customers and transactions.
The current outcome already includes a calendar adjustment. As the name of the outcome describes, we computed average (mean) sales per trading day in each month.
Why is this calendar adjustment needed? Some of the variation seen in seasonal data may be due to simple calendar effects. In such cases, it is usually much easier to remove the variation before doing any further analysis. For example, if you are studying the total monthly sales in a retail store, there will be variation between the months simply because of the different numbers of trading days in each month, in addition to the seasonal variation across the year. It is easy to remove this variation by computing average sales per trading day in each month, rather than total sales in the month.
Trend A trend exists when there is a long-term increase or decrease in the data. It does not have to be linear. Sometimes we will refer to a trend as “changing direction”, when it might go from an increasing trend to a decreasing trend. There is a trend in the drug sales data shown in Figure 2.2.
Seasonal A seasonal pattern occurs when a time series is affected by seasonal factors such as the time of the year or the day of the week. Seasonality is always of a fixed and known period. The monthly sales of antidiabetic drugs (Figure 2.2) shows seasonality which is induced partly by the change in the cost of the drugs at the end of the calendar year.
Cyclic A cycle occurs when the data exhibit rises and falls that are not of a fixed frequency. These fluctuations are usually due to economic conditions, and are often related to the “business cycle”. The duration of these fluctuations is usually at least 2 years.
Autocorrelation Strong autocorrelation in a lag plot typically manifests in the following ways:
Clear Linear Pattern: When there is strong autocorrelation, the points in the lag plot tend to align along a straight line, indicating a linear relationship between the current values and their lagged counterparts.
Tight Cluster: Points in a lag plot with strong autocorrelation tend to form a tight cluster around the regression line. This means that the relationship between the current values and lagged values is consistent and predictable.
Persistence of Patterns: If there are patterns in the original time series data, those patterns will be reflected in the lag plot when there is autocorrelation. For example, if there’s a repeating pattern every few time points, you’ll see a similar repeating pattern in the lag plot.
Slow Decay: In some cases of strong autocorrelation, the lag plot might show a slow decay in the pattern as the lag increases. This indicates that the effect of autocorrelation persists over several lagged values.
Box-Cox Transformation
Adding a Constant to the outcome. I looked at the most negative number (the smallest number) and I added a constant in that ammount.
## Estimated transformation parameter
## Y1
## 0.5569151
## # A dable: 72 x 7 [1M]
## # Key: .model [1]
## # : m2m = trend + season_year + remainder
## .model Month m2m trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2016 Jan 0 -10.5 -7.21 17.8 7.21
## 2 stl 2016 Feb -5.28 -9.49 4.09 0.122 -9.37
## 3 stl 2016 Mar -8.39 -8.45 21.3 -21.3 -29.7
## 4 stl 2016 Apr -41.3 -7.40 8.90 -42.8 -50.2
## 5 stl 2016 May 23.5 -6.56 7.31 22.7 16.2
## 6 stl 2016 Jun 14.7 -5.71 6.12 14.3 8.58
## 7 stl 2016 Jul 16.4 -4.87 14.4 6.87 2.00
## 8 stl 2016 Aug 16.9 -3.89 12.9 7.93 4.05
## 9 stl 2016 Sep -15.1 -2.91 -13.8 1.65 -1.26
## 10 stl 2016 Oct -5.61 -1.93 -14.0 10.3 8.38
## # ℹ 62 more rows
## # A dable: 60 x 7 [1M]
## # Key: .model [1]
## # : m2m = trend + season_year + remainder
## .model Month m2m trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2017 Jan -18.0 -1.16 -10.6 -6.22 -7.38
## 2 stl 2017 Feb 19.0 -0.709 2.33 17.3 16.6
## 3 stl 2017 Mar 3.09 -0.262 31.4 -28.1 -28.3
## 4 stl 2017 Apr 19.6 0.184 23.6 -4.15 -3.96
## 5 stl 2017 May 4.60 0.477 0.545 3.57 4.05
## 6 stl 2017 Jun 8.12 0.769 1.96 5.39 6.16
## 7 stl 2017 Jul 30.8 1.06 9.98 19.7 20.8
## 8 stl 2017 Aug 10.0 1.38 10.3 -1.62 -0.239
## 9 stl 2017 Sep -7.31 1.70 -14.4 5.39 7.09
## 10 stl 2017 Oct -11.5 2.01 -15.7 2.23 4.25
## # ℹ 50 more rows
Autocorrelation analysis is an important step in the Exploratory Data Analysis of time series forecasting. The autocorrelation analysis helps detect patterns and check for randomness. It’s especially important when you intend to use an autoregressive–moving-average (ARMA) model for forecasting because it helps to determine its parameters. The analysis involves looking at the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.
The lag plot is used to answer the following questions:
Distribution of Model: Distribution of model here means deciding what is the shape of data on the basis of the lag plot. Below are some examples of lag plot and their original plot: If the lag plot is linear, then the underlying structure is of the autoregressive model. If the lag plot is of elliptical shape, then the underlying structure represents a continuous periodic function such as sine, cosine, etc.
Outliers: Outliers are a set of data points that represent the extreme values in the distribution
Randomness in data: The lag plot is also useful for checking whether the given dataset is random or not. If there is randomness in the data then it will be reflected in the lag plot, if there is no pattern in the lag plot.
Seasonality: If there is seasonality in the plot then, it will give a periodic lag plot.
Autocorrelation: If the lag plot gives a linear plot, then it means the autocorrelation is present in the data, whether there is positive autocorrelation or negative that depends upon the slope of the line of the dataset. If more data is concentrated on the diagonal in lag plot, it means there is a strong autocorrelation.
## # A tsibble: 18 x 2 [1M]
## lag acf
## <cf_lag> <dbl>
## 1 1M 0.207
## 2 2M -0.0180
## 3 3M -0.0798
## 4 4M -0.240
## 5 5M -0.0786
## 6 6M -0.234
## 7 7M -0.0514
## 8 8M -0.0494
## 9 9M -0.0579
## 10 10M 0.0129
## 11 11M 0.218
## 12 12M 0.186
## 13 13M 0.180
## 14 14M 0.118
## 15 15M -0.0965
## 16 16M -0.0770
## 17 17M -0.194
## 18 18M -0.200
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
SARIMA Models Manually Chosen SARIMA(12,1,0) OR ARIMA(0,1,1)
This outcomes describes the total mean monthly distributions of SNAP dollars at FMs in Ohio.
To understand month-to-month growth of mean SNAP sales in Ohio, we need to study the following time series. We hypothesize that these time series are highly correlated with the main outcome. Nonetheless, there may be a relationship between the nutrition incentive dollars distribution at FM in Ohio, and the number of new customers and total number of transactions at the FM. We expect that the knowledge among potential customers about the statewid nutrition incentive program would incentivize them to use their SNAP dollars at Farmers’ Markets, thus increasing the number of new customers and transactions.
The current outcome already includes a calendar adjustment. As the name of the outcome describes, we computed average (mean) sales per trading day in each month.
Why is this calendar adjustment needed? Some of the variation seen in seasonal data may be due to simple calendar effects. In such cases, it is usually much easier to remove the variation before doing any further analysis. For example, if you are studying the total monthly sales in a retail store, there will be variation between the months simply because of the different numbers of trading days in each month, in addition to the seasonal variation across the year. It is easy to remove this variation by computing average sales per trading day in each month, rather than total sales in the month.
Box-Cox Transformation
Adding a Constant to the outcome. I looked at the most negative number (the smallest number) and I added a constant in that ammount.
## Estimated transformation parameter
## Y1
## 0.7450515
## # A dable: 72 x 7 [1M]
## # Key: .model [1]
## # : Mean_SNAP.Incentives.Distributed = trend + season_year + remainder
## .model Month Mean_SNAP.Incentives.Distributed trend season_year remainder
## <chr> <mth> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2016 Jan 79.9 78.5 -21.3 22.8
## 2 stl 2016 Feb 73.5 75.7 -21.8 19.6
## 3 stl 2016 Mar 66.2 72.9 -17.1 10.4
## 4 stl 2016 Apr 41.1 70.1 -6.74 -22.2
## 5 stl 2016 May 45.3 67.4 1.69 -23.8
## 6 stl 2016 Jun 61.2 64.7 18.1 -21.5
## 7 stl 2016 Jul 77.2 62.0 20.9 -5.68
## 8 stl 2016 Aug 87 59.4 34.1 -6.48
## 9 stl 2016 Sep 74.9 56.7 22.0 -3.83
## 10 stl 2016 Oct 72.0 54.0 10.1 7.85
## # ℹ 62 more rows
## # ℹ 1 more variable: season_adjust <dbl>
## # A dable: 60 x 7 [1M]
## # Key: .model [1]
## # : Mean_SNAP.Incentives.Distributed = trend + season_year + remainder
## .model Month Mean_SNAP.Incentives.Distributed trend season_year remainder
## <chr> <mth> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2017 Jan 25.1 43.6 -29.3 10.8
## 2 stl 2017 Feb 27.8 44.5 -30.0 13.3
## 3 stl 2017 Mar 32.6 45.4 -22.2 9.42
## 4 stl 2017 Apr 38.8 46.2 1.53 -8.98
## 5 stl 2017 May 42.6 47.2 10.6 -15.2
## 6 stl 2017 Jun 53.9 48.1 27.8 -22.0
## 7 stl 2017 Jul 70.0 49.0 22.9 -1.88
## 8 stl 2017 Aug 79.5 49.8 36.8 -7.17
## 9 stl 2017 Sep 71.5 50.6 23.7 -2.76
## 10 stl 2017 Oct 65.2 51.4 8.56 5.19
## # ℹ 50 more rows
## # ℹ 1 more variable: season_adjust <dbl>
Autocorrelation analysis is an important step in the Exploratory Data Analysis of time series forecasting. The autocorrelation analysis helps detect patterns and check for randomness. It’s especially important when you intend to use an autoregressive–moving-average (ARMA) model for forecasting because it helps to determine its parameters. The analysis involves looking at the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.
The lag plot is used to answer the following questions:
Distribution of Model: Distribution of model here means deciding what is the shape of data on the basis of the lag plot. Below are some examples of lag plot and their original plot: If the lag plot is linear, then the underlying structure is of the autoregressive model. If the lag plot is of elliptical shape, then the underlying structure represents a continuous periodic function such as sine, cosine, etc.
Outliers: Outliers are a set of data points that represent the extreme values in the distribution
Randomness in data: The lag plot is also useful for checking whether the given dataset is random or not. If there is randomness in the data then it will be reflected in the lag plot, if there is no pattern in the lag plot.
Seasonality: If there is seasonality in the plot then, it will give a periodic lag plot.
Autocorrelation: If the lag plot gives a linear plot, then it means the autocorrelation is present in the data, whether there is positive autocorrelation or negative that depends upon the slope of the line of the dataset. If more data is concentrated on the diagonal in lag plot, it means there is a strong autocorrelation.
## # A tsibble: 18 x 2 [1M]
## lag acf
## <cf_lag> <dbl>
## 1 1M 0.862
## 2 2M 0.727
## 3 3M 0.531
## 4 4M 0.379
## 5 5M 0.279
## 6 6M 0.180
## 7 7M 0.172
## 8 8M 0.213
## 9 9M 0.307
## 10 10M 0.403
## 11 11M 0.467
## 12 12M 0.481
## 13 13M 0.457
## 14 14M 0.378
## 15 15M 0.259
## 16 16M 0.147
## 17 17M 0.0278
## 18 18M -0.0398
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
This outcomes describes the total mean monthly distributions of SNAP dollars at FMs in Ohio.
To understand month-to-month growth of mean SNAP sales in Ohio, we need to study the following time series. We hypothesize that these time series are highly correlated with the main outcome. Nonetheless, there may be a relationship between the nutrition incentive dollars distribution at FM in Ohio, and the number of new customers and total number of transactions at the FM. We expect that the knowledge among potential customers about the statewid nutrition incentive program would incentivize them to use their SNAP dollars at Farmers’ Markets, thus increasing the number of new customers and transactions.
The current outcome already includes a calendar adjustment. As the name of the outcome describes, we computed average (mean) sales per trading day in each month.
Why is this calendar adjustment needed? Some of the variation seen in seasonal data may be due to simple calendar effects. In such cases, it is usually much easier to remove the variation before doing any further analysis. For example, if you are studying the total monthly sales in a retail store, there will be variation between the months simply because of the different numbers of trading days in each month, in addition to the seasonal variation across the year. It is easy to remove this variation by computing average sales per trading day in each month, rather than total sales in the month.
Box-Cox Transformation
Adding a Constant to the outcome. I looked at the most negative number (the smallest number) and I added a constant in that ammount.
## Estimated transformation parameter
## Y1
## -0.09741612
## # A dable: 72 x 7 [1M]
## # Key: .model [1]
## # : Mean_SNAP.Sales = trend + season_year + remainder
## .model Month Mean_SNAP.Sales trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2016 Jan 121. 114. -22.8 29.8 143.
## 2 stl 2016 Feb 114. 110. -22.0 26.6 136.
## 3 stl 2016 Mar 105. 106. -9.35 8.23 114.
## 4 stl 2016 Apr 61.5 102. 1.09 -41.5 60.4
## 5 stl 2016 May 75.9 98.1 2.60 -24.8 73.3
## 6 stl 2016 Jun 87.1 94.3 11.2 -18.4 75.9
## 7 stl 2016 Jul 101. 90.5 17.7 -6.86 83.7
## 8 stl 2016 Aug 119. 86.8 33.2 -1.51 85.3
## 9 stl 2016 Sep 101. 83.1 18.7 -1.18 81.9
## 10 stl 2016 Oct 95.0 79.4 7.72 7.93 87.3
## # ℹ 62 more rows
## # A dable: 60 x 7 [1M]
## # Key: .model [1]
## # : Mean_SNAP.Sales = trend + season_year + remainder
## .model Month Mean_SNAP.Sales trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2017 Jan 43.9 66.1 -33.2 11.0 77.0
## 2 stl 2017 Feb 52.2 67.0 -33.0 18.2 85.2
## 3 stl 2017 Mar 53.8 67.9 -12.7 -1.48 66.5
## 4 stl 2017 Apr 64.3 68.9 15.9 -20.4 48.5
## 5 stl 2017 May 67.3 69.7 12.2 -14.5 55.1
## 6 stl 2017 Jun 72.8 70.5 19.4 -17.1 53.4
## 7 stl 2017 Jul 95.2 71.3 20.2 3.71 75.0
## 8 stl 2017 Aug 105. 71.9 34.3 -1.48 70.4
## 9 stl 2017 Sep 97.0 72.5 18.5 6.00 78.5
## 10 stl 2017 Oct 85.9 73.1 6.36 6.39 79.5
## # ℹ 50 more rows
Autocorrelation analysis is an important step in the Exploratory Data Analysis of time series forecasting. The autocorrelation analysis helps detect patterns and check for randomness. It’s especially important when you intend to use an autoregressive–moving-average (ARMA) model for forecasting because it helps to determine its parameters. The analysis involves looking at the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.
The lag plot is used to answer the following questions:
Distribution of Model: Distribution of model here means deciding what is the shape of data on the basis of the lag plot. Below are some examples of lag plot and their original plot: If the lag plot is linear, then the underlying structure is of the autoregressive model. If the lag plot is of elliptical shape, then the underlying structure represents a continuous periodic function such as sine, cosine, etc.
Outliers: Outliers are a set of data points that represent the extreme values in the distribution
Randomness in data: The lag plot is also useful for checking whether the given dataset is random or not. If there is randomness in the data then it will be reflected in the lag plot, if there is no pattern in the lag plot.
Seasonality: If there is seasonality in the plot then, it will give a periodic lag plot.
Autocorrelation: If the lag plot gives a linear plot, then it means the autocorrelation is present in the data, whether there is positive autocorrelation or negative that depends upon the slope of the line of the dataset. If more data is concentrated on the diagonal in lag plot, it means there is a strong autocorrelation.
## # A tsibble: 18 x 2 [1M]
## lag acf
## <cf_lag> <dbl>
## 1 1M 0.864
## 2 2M 0.731
## 3 3M 0.555
## 4 4M 0.425
## 5 5M 0.355
## 6 6M 0.282
## 7 7M 0.263
## 8 8M 0.254
## 9 9M 0.288
## 10 10M 0.333
## 11 11M 0.389
## 12 12M 0.404
## 13 13M 0.400
## 14 14M 0.342
## 15 15M 0.253
## 16 16M 0.171
## 17 17M 0.0662
## 18 18M 0.00976
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
This outcomes describes the total mean number of monthly new customers at FMs in Ohio.
To understand month-to-month growth of mean SNAP sales in Ohio, we need to study the following time series. We hypothesize that these time series are highly correlated with the main outcome. Nonetheless, there may be a relationship between the nutrition incentive dollars distribution at FM in Ohio, and the number of new customers and total number of transactions at the FM. We expect that the knowledge among potential customers about the statewid nutrition incentive program would incentivize them to use their SNAP dollars at Farmers’ Markets, thus increasing the number of new customers and transactions.
The current outcome already includes a calendar adjustment. As the name of the outcome describes, we computed average (mean) sales per trading day in each month.
Why is this calendar adjustment needed? Some of the variation seen in seasonal data may be due to simple calendar effects. In such cases, it is usually much easier to remove the variation before doing any further analysis. For example, if you are studying the total monthly sales in a retail store, there will be variation between the months simply because of the different numbers of trading days in each month, in addition to the seasonal variation across the year. It is easy to remove this variation by computing average sales per trading day in each month, rather than total sales in the month.
Box-Cox Transformation
Adding a Constant to the outcome. I looked at the most negative number (the smallest number) and I added a constant in that ammount.
## Estimated transformation parameter
## Y1
## 0.7987282
## # A dable: 72 x 7 [1M]
## # Key: .model [1]
## # : Mean_newcustomers = trend + season_year + remainder
## .model Month Mean_newcustomers trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2016 Jan 2.05 2.10 -0.713 0.663 2.77
## 2 stl 2016 Feb 1.42 2.03 -0.820 0.211 2.24
## 3 stl 2016 Mar 0.773 1.96 -0.625 -0.559 1.40
## 4 stl 2016 Apr 0.976 1.88 -0.286 -0.621 1.26
## 5 stl 2016 May 2.58 1.81 0.223 0.538 2.35
## 6 stl 2016 Jun 2.34 1.75 0.541 0.0567 1.80
## 7 stl 2016 Jul 2.54 1.68 1.06 -0.194 1.48
## 8 stl 2016 Aug 2.82 1.61 1.44 -0.234 1.38
## 9 stl 2016 Sep 2.06 1.55 0.620 -0.112 1.44
## 10 stl 2016 Oct 1.20 1.49 -0.0381 -0.251 1.24
## # ℹ 62 more rows
## # A dable: 60 x 7 [1M]
## # Key: .model [1]
## # : Mean_newcustomers = trend + season_year + remainder
## .model Month Mean_newcustomers trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2017 Jan 0.481 1.37 -0.921 0.0279 1.40
## 2 stl 2017 Feb 0.597 1.39 -0.921 0.133 1.52
## 3 stl 2017 Mar 0.691 1.40 -0.465 -0.241 1.16
## 4 stl 2017 Apr 1.16 1.41 -0.0587 -0.191 1.22
## 5 stl 2017 May 1.27 1.41 0.0740 -0.214 1.20
## 6 stl 2017 Jun 2.09 1.42 0.540 0.133 1.55
## 7 stl 2017 Jul 2.69 1.43 1.11 0.153 1.58
## 8 stl 2017 Aug 2.89 1.43 1.49 -0.0377 1.39
## 9 stl 2017 Sep 2.22 1.43 0.637 0.147 1.58
## 10 stl 2017 Oct 1.93 1.44 0.00710 0.482 1.92
## # ℹ 50 more rows
Autocorrelation analysis is an important step in the Exploratory Data Analysis of time series forecasting. The autocorrelation analysis helps detect patterns and check for randomness. It’s especially important when you intend to use an autoregressive–moving-average (ARMA) model for forecasting because it helps to determine its parameters. The analysis involves looking at the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.
The lag plot is used to answer the following questions:
Distribution of Model: Distribution of model here means deciding what is the shape of data on the basis of the lag plot. Below are some examples of lag plot and their original plot: If the lag plot is linear, then the underlying structure is of the autoregressive model. If the lag plot is of elliptical shape, then the underlying structure represents a continuous periodic function such as sine, cosine, etc.
Outliers: Outliers are a set of data points that represent the extreme values in the distribution
Randomness in data: The lag plot is also useful for checking whether the given dataset is random or not. If there is randomness in the data then it will be reflected in the lag plot, if there is no pattern in the lag plot.
Seasonality: If there is seasonality in the plot then, it will give a periodic lag plot.
Autocorrelation: If the lag plot gives a linear plot, then it means the autocorrelation is present in the data, whether there is positive autocorrelation or negative that depends upon the slope of the line of the dataset. If more data is concentrated on the diagonal in lag plot, it means there is a strong autocorrelation.
## # A tsibble: 18 x 2 [1M]
## lag acf
## <cf_lag> <dbl>
## 1 1M 0.764
## 2 2M 0.432
## 3 3M 0.0885
## 4 4M -0.233
## 5 5M -0.438
## 6 6M -0.508
## 7 7M -0.390
## 8 8M -0.212
## 9 9M 0.0537
## 10 10M 0.332
## 11 11M 0.549
## 12 12M 0.635
## 13 13M 0.524
## 14 14M 0.277
## 15 15M -0.0117
## 16 16M -0.267
## 17 17M -0.425
## 18 18M -0.476
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
This outcomes describes the total mean number of monthly transactions at FMs in Ohio.
To understand month-to-month growth of mean SNAP sales in Ohio, we need to study the following time series. We hypothesize that these time series are highly correlated with the main outcome. Nonetheless, there may be a relationship between the nutrition incentive dollars distribution at FM in Ohio, and the number of new customers and total number of transactions at the FM. We expect that the knowledge among potential customers about the statewid nutrition incentive program would incentivize them to use their SNAP dollars at Farmers’ Markets, thus increasing the number of new customers and transactions.
The current outcome already includes a calendar adjustment. As the name of the outcome describes, we computed average (mean) sales per trading day in each month.
Why is this calendar adjustment needed? Some of the variation seen in seasonal data may be due to simple calendar effects. In such cases, it is usually much easier to remove the variation before doing any further analysis. For example, if you are studying the total monthly sales in a retail store, there will be variation between the months simply because of the different numbers of trading days in each month, in addition to the seasonal variation across the year. It is easy to remove this variation by computing average sales per trading day in each month, rather than total sales in the month.
Box-Cox Transformation
Adding a Constant to the outcome. I looked at the most negative number (the smallest number) and I added a constant in that ammount.
## Estimated transformation parameter
## Y1
## -0.4896065
## # A dable: 72 x 7 [1M]
## # Key: .model [1]
## # : Mean_Transaction.Sales = trend + season_year + remainder
## .model Month Mean_Transaction.Sales trend season_year remainder
## <chr> <mth> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2016 Jan 312. 296. -27.6 44.1
## 2 stl 2016 Feb 295. 281. -26.9 41.4
## 3 stl 2016 Mar 328. 266. -2.47 64.4
## 4 stl 2016 Apr 185. 251. 2.19 -68.6
## 5 stl 2016 May 212. 237. 14.8 -39.9
## 6 stl 2016 Jun 153. 223. -0.394 -69.5
## 7 stl 2016 Jul 204. 209. 11.0 -15.5
## 8 stl 2016 Aug 218. 195. 28.9 -6.01
## 9 stl 2016 Sep 184. 181. 18.4 -15.0
## 10 stl 2016 Oct 180. 167. 3.08 9.76
## # ℹ 62 more rows
## # ℹ 1 more variable: season_adjust <dbl>
## # A dable: 60 x 7 [1M]
## # Key: .model [1]
## # : Mean_newcustomers = trend + season_year + remainder
## .model Month Mean_newcustomers trend season_year remainder season_adjust
## <chr> <mth> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 stl 2017 Jan 0.481 1.37 -0.921 0.0279 1.40
## 2 stl 2017 Feb 0.597 1.39 -0.921 0.133 1.52
## 3 stl 2017 Mar 0.691 1.40 -0.465 -0.241 1.16
## 4 stl 2017 Apr 1.16 1.41 -0.0587 -0.191 1.22
## 5 stl 2017 May 1.27 1.41 0.0740 -0.214 1.20
## 6 stl 2017 Jun 2.09 1.42 0.540 0.133 1.55
## 7 stl 2017 Jul 2.69 1.43 1.11 0.153 1.58
## 8 stl 2017 Aug 2.89 1.43 1.49 -0.0377 1.39
## 9 stl 2017 Sep 2.22 1.43 0.637 0.147 1.58
## 10 stl 2017 Oct 1.93 1.44 0.00710 0.482 1.92
## # ℹ 50 more rows
Autocorrelation analysis is an important step in the Exploratory Data Analysis of time series forecasting. The autocorrelation analysis helps detect patterns and check for randomness. It’s especially important when you intend to use an autoregressive–moving-average (ARMA) model for forecasting because it helps to determine its parameters. The analysis involves looking at the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots.
The lag plot is used to answer the following questions:
Distribution of Model: Distribution of model here means deciding what is the shape of data on the basis of the lag plot. Below are some examples of lag plot and their original plot: If the lag plot is linear, then the underlying structure is of the autoregressive model. If the lag plot is of elliptical shape, then the underlying structure represents a continuous periodic function such as sine, cosine, etc.
Outliers: Outliers are a set of data points that represent the extreme values in the distribution
Randomness in data: The lag plot is also useful for checking whether the given dataset is random or not. If there is randomness in the data then it will be reflected in the lag plot, if there is no pattern in the lag plot.
Seasonality: If there is seasonality in the plot then, it will give a periodic lag plot.
Autocorrelation: If the lag plot gives a linear plot, then it means the autocorrelation is present in the data, whether there is positive autocorrelation or negative that depends upon the slope of the line of the dataset. If more data is concentrated on the diagonal in lag plot, it means there is a strong autocorrelation.
## # A tsibble: 18 x 2 [1M]
## lag acf
## <cf_lag> <dbl>
## 1 1M 0.764
## 2 2M 0.432
## 3 3M 0.0885
## 4 4M -0.233
## 5 5M -0.438
## 6 6M -0.508
## 7 7M -0.390
## 8 8M -0.212
## 9 9M 0.0537
## 10 10M 0.332
## 11 11M 0.549
## 12 12M 0.635
## 13 13M 0.524
## 14 14M 0.277
## 15 15M -0.0117
## 16 16M -0.267
## 17 17M -0.425
## 18 18M -0.476
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
NOTE: This is not a Stationary Time Series. A stationary time series is one whose properties do not depend on the time at which the series is observed. Thus, time series with trends, or with seasonality, are not stationary — the trend and seasonality will affect the value of the time series at different times.
The ACF plot can provide answers to the following questions: Is the observed time series white noise/random? Is an observation related to an adjacent observation, an observation twice-removed, and so on? Can the observed time series be modeled with an MA model? If yes, what is the order?
The dashed blue lines indicate whether the correlations are significantly different from zero (as explained in Section 2.9).
Transformation?
An alternative to using seasonal dummy variables, especially for long seasonal periods, is to use Fourier terms. Jean-Baptiste Fourier was a French mathematician, born in the 1700s, who showed that a series of sine and cosine terms of the right frequencies can approximate any periodic function. We can use them for seasonal patterns.
With Fourier terms, we often need fewer predictors than with dummy variables, especially when m is large. This makes them useful for weekly data, for example, where m ≈ 52 . For short seasonal periods (e.g., quarterly data), there is little advantage in using Fourier terms over seasonal dummy variables. These Fourier terms are produced using the fourier() function. For example, the Australian beer data can be modelled like this.
## Series: m2m
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -33.566 -9.803 -1.833 7.735 82.640
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -7.541e+00 2.205e+01 -0.342 0.733794
## SNAP.Incentives.Distributed 1.177e-04 4.774e-04 0.247 0.806320
## Mean_newcustomers 3.741e+01 9.096e+00 4.113 0.000149 ***
## Mean_snapvendors 5.105e-01 3.541e-01 1.442 0.155744
## dayopen.x -2.689e-01 9.787e-02 -2.747 0.008388 **
## Mean_Transaction.Sales -1.514e-01 1.208e-01 -1.253 0.216188
## postcapTRUE 1.185e+01 7.766e+00 1.526 0.133497
## pcovidTRUE -4.352e+01 2.570e+01 -1.693 0.096774 .
## seasonSpring 1.257e+01 9.390e+00 1.338 0.187024
## seasonSummer 1.054e+01 9.671e+00 1.090 0.281101
## seasonWinter 1.471e+00 1.078e+01 0.136 0.892015
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 19.34 on 49 degrees of freedom
## Multiple R-squared: 0.5647, Adjusted R-squared: 0.4759
## F-statistic: 6.358 on 10 and 49 DF, p-value: 3.5829e-06
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.476 479. 367. 374. 392.
| Month | m2m | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | -18.003 | -12.201 | -5.802 |
| 2017 Feb | 18.957 | -7.796 | 26.753 |
| 2017 Mar | 3.085 | 3.459 | -0.373 |
| 2017 Apr | 19.635 | 21.495 | -1.860 |
| 2017 May | 4.596 | 7.680 | -3.084 |
| 2017 Jun | 8.120 | 13.225 | -5.104 |
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
## Warning: Removed 12 rows containing non-finite values (`stat_bin()`).
Should I be Looking at Cook’s Distance for “Outliers” or points that are out of the ordinary?
## Best Subsets Regression
## ----------------------------------------------------------------------------------------------------------------------------------------------
## Model Index Predictors
## ----------------------------------------------------------------------------------------------------------------------------------------------
## 1 season
## 2 nsnaptx.x Mean_newcustomers
## 3 nsnaptx.x Mean_newcustomers season
## 4 Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap
## 5 Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## 6 nsnaptx.x Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## 7 Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales postcap pcovid season
## 8 SNAP.Incentives.Distributed Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales postcap pcovid season
## 9 SNAP.Incentives.Distributed nsnaptx.x Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales postcap pcovid season
## ----------------------------------------------------------------------------------------------------------------------------------------------
##
## Subsets Regression Summary
## --------------------------------------------------------------------------------------------------------------------------------------
## Adj. Pred
## Model R-Square R-Square R-Square C(p) AIC SBIC SBC MSEP FPE HSP APC
## --------------------------------------------------------------------------------------------------------------------------------------
## 1 0.2381 0.2045 0.1459 23.5102 661.9081 452.6373 673.2915 37095.5002 545.0950 7.6864 0.8054
## 2 0.3402 0.3210 0.2459 13.2550 649.5560 444.6628 658.6626 32600.0672 471.5402 6.6570 0.7172
## 3 0.3967 0.3510 0.2668 8.4656 649.1078 440.7291 665.0444 30252.2590 456.7530 6.4584 0.6743
## 4 0.4344 0.4006 0.2924 5.9366 642.4611 438.7250 656.1211 28791.2754 427.3659 6.0548 0.6500
## 5 0.4788 0.4218 0.3162 2.6014 642.5724 436.0018 663.0624 26938.3741 417.6173 5.9307 0.6159
## 6 0.4815 0.4157 0.2988 4.2747 644.1957 438.0061 666.9623 27216.5113 427.4429 6.0870 0.6301
## 7 0.4998 0.4272 0.3009 4.0841 643.6174 438.3847 668.6607 26675.9496 424.3633 6.0623 0.6253
## 8 0.5004 0.4185 0.2833 6.0111 645.5298 440.7189 672.8498 27073.2685 436.1809 6.2535 0.6424
## 9 0.5005 0.4089 0.2471 8.0000 647.5165 443.1094 677.1132 27512.0074 448.8423 6.4607 0.6607
## --------------------------------------------------------------------------------------------------------------------------------------
## AIC: Akaike Information Criteria
## SBIC: Sawa's Bayesian Information Criteria
## SBC: Schwarz Bayesian Criteria
## MSEP: Estimated error of prediction, assuming multivariate normality
## FPE: Final Prediction Error
## HSP: Hocking's Sp
## APC: Amemiya Prediction Criteria
Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## Series: m2m
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -37.981 -8.776 -3.368 8.720 82.091
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 5.0814560 21.0212413 0.242 0.80996
## SNAP.Incentives.Distributed -0.0002515 0.0004311 -0.583 0.56222
## Mean_newcustomers 39.8466840 8.7757745 4.541 3.45e-05 ***
## dayopen.x -0.2675350 0.0955202 -2.801 0.00718 **
## Mean_Transaction.Sales -0.1584146 0.1150788 -1.377 0.17466
## postcapTRUE 12.9538662 7.0090213 1.848 0.07038 .
## seasonSpring 12.5431392 9.4826425 1.323 0.19182
## seasonSummer 11.2165699 9.7077699 1.155 0.25330
## seasonWinter -0.7967543 10.5297718 -0.076 0.93998
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 19.53 on 51 degrees of freedom
## Multiple R-squared: 0.538, Adjusted R-squared: 0.4655
## F-statistic: 7.422 on 8 and 51 DF, p-value: 1.674e-06
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.465 474. 367. 371. 388.
| Month | m2m | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | -18.003 | -12.120 | -5.883 |
| 2017 Feb | 18.957 | -7.566 | 26.522 |
| 2017 Mar | 3.085 | 6.226 | -3.141 |
| 2017 Apr | 19.635 | 21.795 | -2.160 |
| 2017 May | 4.596 | 9.219 | -4.623 |
| 2017 Jun | 8.120 | 16.543 | -8.423 |
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
## Warning: Removed 12 rows containing non-finite values (`stat_bin()`).
Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## Series: m2m
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -38.224 -8.319 -3.399 9.179 82.368
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 13.98071 14.37097 0.973 0.3351
## Mean_newcustomers 40.46896 8.65528 4.676 2.12e-05 ***
## dayopen.x -0.30518 0.06997 -4.362 6.13e-05 ***
## Mean_Transaction.Sales -0.20473 0.08278 -2.473 0.0167 *
## postcapTRUE 13.26671 6.94401 1.911 0.0616 .
## seasonSpring 12.14296 9.39761 1.292 0.2020
## seasonSummer 10.93879 9.63439 1.135 0.2614
## seasonWinter -2.60317 10.00013 -0.260 0.7956
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 19.41 on 52 degrees of freedom
## Multiple R-squared: 0.5349, Adjusted R-squared: 0.4723
## F-statistic: 8.542 on 7 and 52 DF, p-value: 6.2947e-07
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.472 462. 365. 369. 384.
| Month | m2m | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | -18.003 | -11.370 | -6.632 |
| 2017 Feb | 18.957 | -6.953 | 25.909 |
| 2017 Mar | 3.085 | 7.912 | -4.827 |
| 2017 Apr | 19.635 | 23.098 | -3.463 |
| 2017 May | 4.596 | 8.329 | -3.733 |
| 2017 Jun | 8.120 | 15.285 | -7.164 |
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
## Warning: Removed 12 rows containing non-finite values (`stat_bin()`).
Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## Series: Mean_SNAP.Sales
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -13.79134 -3.83415 -0.04643 4.64348 12.20632
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -1.651e+01 7.829e+00 -2.108 0.040 *
## SNAP.Incentives.Distributed 9.422e-04 1.602e-04 5.880 3.36e-07 ***
## Mean_newcustomers 1.602e+00 3.336e+00 0.480 0.633
## dayopen.x -4.635e-02 3.664e-02 -1.265 0.212
## Mean_Transaction.Sales 6.273e-01 4.525e-02 13.861 < 2e-16 ***
## postcapTRUE -1.886e+00 2.864e+00 -0.658 0.513
## seasonSpring -1.326e+00 3.520e+00 -0.377 0.708
## seasonSummer -2.302e-01 3.625e+00 -0.064 0.950
## seasonWinter -3.443e+00 4.031e+00 -0.854 0.397
## Mean_snapvendors 3.445e-01 4.763e-02 7.233 2.59e-09 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 7.249 on 50 degrees of freedom
## Multiple R-squared: 0.9878, Adjusted R-squared: 0.9857
## F-statistic: 451.3 on 9 and 50 DF, p-value: < 2.22e-16
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.986 67.5 249. 254. 272.
| Month | Mean_SNAP.Sales | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | 43.860 | 43.229 | 0.631 |
| 2017 Feb | 52.175 | 49.346 | 2.828 |
| 2017 Mar | 53.785 | 54.477 | -0.692 |
| 2017 Apr | 64.345 | 68.375 | -4.030 |
| 2017 May | 67.303 | 81.094 | -13.791 |
| 2017 Jun | 72.768 | 72.081 | 0.687 |
## Best Subsets Regression
## ----------------------------------------------------------------------------------------------------------------------------------------------
## Model Index Predictors
## ----------------------------------------------------------------------------------------------------------------------------------------------
## 1 Mean_Transaction.Sales
## 2 SNAP.Incentives.Distributed Mean_Transaction.Sales
## 3 SNAP.Incentives.Distributed Mean_snapvendors Mean_Transaction.Sales
## 4 SNAP.Incentives.Distributed Mean_snapvendors Mean_Transaction.Sales season
## 5 SNAP.Incentives.Distributed Mean_newcustomers Mean_snapvendors Mean_Transaction.Sales season
## 6 SNAP.Incentives.Distributed Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales season
## 7 SNAP.Incentives.Distributed nsnaptx.x Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales season
## 8 SNAP.Incentives.Distributed nsnaptx.x Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales postcap season
## 9 SNAP.Incentives.Distributed nsnaptx.x Mean_newcustomers Mean_snapvendors dayopen.x Mean_Transaction.Sales postcap pcovid season
## ----------------------------------------------------------------------------------------------------------------------------------------------
##
## Subsets Regression Summary
## -----------------------------------------------------------------------------------------------------------------------------------------
## Adj. Pred
## Model R-Square R-Square R-Square C(p) AIC SBIC SBC MSEP FPE HSP APC
## -----------------------------------------------------------------------------------------------------------------------------------------
## 1 0.6894 0.6849 0.6508 392.9818 705.7486 496.6222 712.5786 72092.2876 1029.0836 14.5112 0.3284
## 2 0.8658 0.8619 0.8385 133.2005 647.3373 438.3633 656.4440 31610.8109 457.2312 6.4550 0.1459
## 3 0.9545 0.9524 0.941 3.5927 571.5189 367.7049 582.9022 10886.2771 159.5284 2.2557 0.0509
## 4 0.9573 0.9533 0.9416 1.3951 572.9027 365.8960 591.1160 10364.9196 158.5865 2.2468 0.0491
## 5 0.9580 0.9534 0.9375 2.3809 573.7415 367.2172 594.2315 10356.0112 160.5460 2.2799 0.0497
## 6 0.9590 0.9538 0.9374 2.7823 573.8723 368.0608 596.6390 10248.2880 160.9522 2.2920 0.0498
## 7 0.9594 0.9535 0.9354 4.2857 575.2817 369.9880 600.3250 10325.9059 164.2654 2.3466 0.0508
## 8 0.9595 0.9529 0.9346 6.1068 577.0677 372.2239 604.3877 10461.3162 168.5436 2.4164 0.0521
## 9 0.9596 0.9522 0.9289 8.0000 578.9396 374.5325 608.5363 10613.9142 173.1598 2.4925 0.0535
## -----------------------------------------------------------------------------------------------------------------------------------------
## AIC: Akaike Information Criteria
## SBIC: Sawa's Bayesian Information Criteria
## SBC: Schwarz Bayesian Criteria
## MSEP: Estimated error of prediction, assuming multivariate normality
## FPE: Final Prediction Error
## HSP: Hocking's Sp
## APC: Amemiya Prediction Criteria
SNAP.Incentives.Distributed Mean_snapvendors Mean_Transaction.Sales
season
SNAP.Incentives.Distributed Mean_newcustomers Mean_snapvendors
Mean_Transaction.Sales season
Mean_newcustomers dayopen.x Mean_Transaction.Sales postcap season
## Series: Mean_SNAP.Sales
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -16.7880 -4.7677 0.8279 4.8759 14.8170
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -2.668e+01 4.121e+00 -6.473 3.17e-08 ***
## SNAP.Incentives.Distributed 7.656e-04 1.086e-04 7.047 3.79e-09 ***
## Mean_snapvendors 3.384e-01 4.317e-02 7.839 2.02e-10 ***
## Mean_Transaction.Sales 6.602e-01 3.591e-02 18.383 < 2e-16 ***
## seasonSpring 1.119e+00 3.045e+00 0.368 0.715
## seasonSummer -6.846e-01 2.982e+00 -0.230 0.819
## seasonWinter -5.060e-01 3.292e+00 -0.154 0.878
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 7.269 on 53 degrees of freedom
## Multiple R-squared: 0.987, Adjusted R-squared: 0.9856
## F-statistic: 672.7 on 6 and 53 DF, p-value: < 2.22e-16
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.986 61.9 247. 249. 263.
| Month | Mean_SNAP.Sales | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | 43.860 | 41.335 | 2.525 |
| 2017 Feb | 52.175 | 47.317 | 4.858 |
| 2017 Mar | 53.785 | 52.264 | 1.520 |
| 2017 Apr | 64.345 | 65.874 | -1.529 |
| 2017 May | 67.303 | 81.004 | -13.701 |
| 2017 Jun | 72.768 | 70.383 | 2.385 |
SNAP.Incentives.Distributed Mean_snapvendors Mean_Transaction.Sales season
## Series: Mean_SNAP.Sales
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -21.0994 -6.1493 0.9356 5.7531 27.2972
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -4.074e+01 5.401e+00 -7.543 5.41e-10 ***
## SNAP.Incentives.Distributed 7.142e-04 1.579e-04 4.524 3.37e-05 ***
## Mean_Transaction.Sales 8.416e-01 3.997e-02 21.058 < 2e-16 ***
## seasonSpring 4.276e+00 4.394e+00 0.973 0.3347
## seasonSummer -3.507e+00 4.309e+00 -0.814 0.4194
## seasonWinter 1.050e+01 4.335e+00 2.421 0.0189 *
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 10.58 on 54 degrees of freedom
## Multiple R-squared: 0.972, Adjusted R-squared: 0.9694
## F-statistic: 375 on 5 and 54 DF, p-value: < 2.22e-16
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.969 123. 291. 293. 305.
| Month | Mean_SNAP.Sales | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | 43.860 | 41.335 | 2.525 |
| 2017 Feb | 52.175 | 47.317 | 4.858 |
| 2017 Mar | 53.785 | 52.264 | 1.520 |
| 2017 Apr | 64.345 | 65.874 | -1.529 |
| 2017 May | 67.303 | 81.004 | -13.701 |
| 2017 Jun | 72.768 | 70.383 | 2.385 |
## Series: Mean_SNAP.Sales
## Model: TSLM
##
## Residuals:
## Min 1Q Median 3Q Max
## -14.4733 -3.9333 0.0118 4.5643 12.8570
##
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -1.580e+01 7.712e+00 -2.049 0.0456 *
## SNAP.Incentives.Distributed 9.520e-04 1.587e-04 6.000 2.05e-07 ***
## Mean_newcustomers 2.437e+00 3.068e+00 0.794 0.4308
## dayopen.x -5.636e-02 3.315e-02 -1.700 0.0952 .
## Mean_snapvendors 3.314e-01 4.302e-02 7.704 4.23e-10 ***
## Mean_Transaction.Sales 6.215e-01 4.417e-02 14.073 < 2e-16 ***
## seasonSpring -1.718e+00 3.450e+00 -0.498 0.6207
## seasonSummer -2.943e-01 3.603e+00 -0.082 0.9352
## seasonWinter -3.672e+00 3.994e+00 -0.919 0.3622
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## Residual standard error: 7.209 on 51 degrees of freedom
## Multiple R-squared: 0.9877, Adjusted R-squared: 0.9858
## F-statistic: 513.4 on 8 and 51 DF, p-value: < 2.22e-16
Comparing Models
## # A tibble: 1 × 5
## adj_r_squared CV AIC AICc BIC
## <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 0.986 64.9 247. 252. 268.
| Month | Mean_SNAP.Sales | .fitted | .resid |
|---|---|---|---|
| 2017 Jan | 43.860 | 42.571 | 1.289 |
| 2017 Feb | 52.175 | 48.785 | 3.390 |
| 2017 Mar | 53.785 | 53.729 | 0.055 |
| 2017 Apr | 64.345 | 67.833 | -3.488 |
| 2017 May | 67.303 | 80.106 | -12.803 |
| 2017 Jun | 72.768 | 71.362 | 1.406 |
## Warning: Removed 12 rows containing missing values (`geom_line()`).
## Warning: Removed 12 rows containing missing values (`geom_point()`).
ARIMA Models Manually Chosen ARIMA(12,1,0) OR ARIMA(0,1,1)
## # A mable: 3 x 2
## # Key: Model name [3]
## `Model name` Orders
## <chr> <model>
## 1 arima011 <ARIMA(0,1,1)(0,1,1)[12]>
## 2 arima110 <ARIMA(1,1,0)(1,1,0)[12]>
## 3 auto <ARIMA(1,0,1)(2,0,0)[12]>
## # A tibble: 3 × 6
## .model sigma2 log_lik AIC AICc BIC
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 arima011 680. -283. 571. 571. 577.
## 2 arima110 1129. -294. 593. 594. 600.
## 3 auto 545. -329. 667. 668. 679.
## # A tibble: 1 × 3
## .model lb_stat lb_pvalue
## <chr> <dbl> <dbl>
## 1 arima011 23.7 0.927
## # A mable: 4 x 2
## # Key: Model name [4]
## `Model name` Orders
## <chr> <model>
## 1 arima011 <LM w/ ARIMA(0,1,1)(0,1,1)[12] errors>
## 2 arima110 <LM w/ ARIMA(1,1,0)(1,1,0)[12] errors>
## 3 arima101 <LM w/ ARIMA(1,0,1)(1,0,0)[12] errors>
## 4 auto <LM w/ ARIMA(1,0,1)(1,0,0)[12] errors>
## # A tibble: 4 × 6
## .model sigma2 log_lik AIC AICc BIC
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 arima011 564. -277. 565. 567. 578.
## 2 arima110 858. -284. 580. 582. 593.
## 3 arima101 513. -324. 663. 666. 682.
## 4 auto 513. -324. 663. 666. 682.
## # A mable: 1 x 2
## # Key: Model name [1]
## `Model name` Orders
## <chr> <model>
## 1 arima011 <LM w/ ARIMA(0,1,1)(0,1,1)[12] errors>
## # A tibble: 1 × 6
## .model sigma2 log_lik AIC AICc BIC
## <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
## 1 arima011 564. -277. 565. 567. 578.
## # A tibble: 1 × 3
## .model lb_stat lb_pvalue
## <chr> <dbl> <dbl>
## 1 arima011 9.10 0.246
SNAP.Incentives.Distributed + newcustomers + dayopen.x