I’m a completely new to using brms. Here is the structure of my data:
24 months of Sales Data at a DMA(dma) level (Designated-Marketing-Area), 24 months of TV grps raw and adstocked, Paid Search Clicks and Impressions, Display Ad Clicks and Impressions. Each of the DMAs are categorized uniquely into one of the 9 US Census regions (region: factor variable). There also is a 3 level factor variable to categorize threat of Competitor activity (threat: factor variable) in a given DMA as Low, Medium, High
Reading the brms documentation I could come up with the following model for brms
model1 <- brm( sales ~ 1 + tvgrps_70 + search_40 + display_30 + (0 + 1|region) + (0 + 1|threat), data = dmadatadf)
How do I specify that the data is a time-series of 24 months where the unit of analysis is DMA? I know that my model specification will be incorrect without the time component. Can anyone provide guidance or introductory links?
I saw @paul.buerkner is active here. Thank you for your lovely package. Not being well versed in programming, tools such as Winbugs or RStan are a little intimidating for me. Your package has been so helpful to get introduced to Stan using lme4 style syntax.
Thank you - Rahul.