enter image description hereI have one unbalanced dataset that contains movie sales data along with some of the characteristics of the movies for several years. One treatment (event) happened in the society in a specific year in between. Now, I want to check with r whether this treatment affected sales of the movies with some special characteristics or not. My issue is that as I checked a lot of DiD and FE models, the treatment population is the same before and after the treatment which is not in my case. Because the movies released before the event are completely different from the ones released after that event. and I am looking for any change in the coefficient of a movie character on its sale. kindly would you please guide me that which model or r package should I use?
treatment effect on unbalanced panel data
290 Views Asked by Lili.Y At
1
There are 1 best solutions below
Related Questions in R
- in R, recovering strings that have been converted to factors with factor()
- How to reinstall pandoc after removing .cabal?
- How do I code a Mixed effects model for abalone growth in Aquaculture nutrition with nested individuals
- How to save t.test result in R to a txt file?
- how to call function from library in formula with R type provider
- geom_bar define border color with different fill colors
- Different outcome using model.matrix for a function in R
- Creating a combination data.table in R
- Force specific interactions in Package 'earth' in R
- Output from recursive function R
- Extract series of observations from dataframe for complete sets of data
- Retrieve path of supplementary data file of developed package
- r package development - own function not visible for opencpu
- Label a dataset according to bins of a histogram
- multiply each columns of a matrix by a vector
Related Questions in LINEAR-REGRESSION
- using apply with an anonymous function which uses specific locations in the row
- writing a wrapper for a linear modeling function [MASS::lm.gls()]
- Create a graph to display observed and fitted values
- How to weight station to Order Least Squares in python?
- How does "statsmodels.regression.linear_model. WLS" work?
- Calling R function within SQL - HANA database
- use common math library in java
- How to use multiple data to train a linear regression model in R
- Format of R's lm() Formula with a Transformation
- perl regression without intercept
- How to avoid float values in regression models
- Linear regression in R: invalid type (list) for variable?
- Regression column in pandas
- Spark's LinearRegressionWithSGD is very sensitive to feature scaling
- Python stats.linregress syntax error
Related Questions in PANEL-DATA
- How to sample/partition panel data by individuals( preferably with caret library)?
- How to get the corr(u_i, Xb) for panel data fixed effects regression in R
- Recurrent Neural Networks for Panel Data
- How to replace NA with latest value in unbalanced panel?
- Constructing a predictive model for unbalanced panel data with positive discrete dependent variable in R
- one to many merge in SAS to complete lines
- R sample from unbalanced panel data
- turning biographical data into panel data
- Merging Daily and Periodic Data into one Dataframe
- Obtaining descriptive statistics of observations with years of complete data in R
- How to do Hausman test using sas?
- forecast time to event survival analysis
- Multinomial Logit Model for Panel Data including a Random Term
- linearmodels panelOLS: Regression output with stars
- How to interprete the results of quantile regression panel data models of R
Related Questions in PLM
- Random effects estimation error with plm package due to negative variance
- Predicting with plm function in R
- Error while selecting business object in eMatrix
- Error when trying to run fixed effects logistic regression
- How to calculate BIC and AIC for a gmm model in R using plm?
- Extract all individual slope coefficient from pooled OLS estimation in R
- What's the best way to turn a POSIX datefield into some time index that is accepted by plm?
- SPML (spatial panel models): Error in lag.listw | unbalanced panels
- R Extract Log Likelihood from a plm object
- System GMM with R: issues with the multi-part formula for IVs and the sargan test results
- treatment effect on unbalanced panel data
- How can I edit a function from a package which is invoking UseMethod?
- Proportion vs. binary response with pglm
- Why PLM creates massive objects and fails to open them
- Warning message when I run the plm function for fixed effects
Related Questions in CAUSALITY
- R bnlearn package: prevent node from having any parents
- treatment effect on unbalanced panel data
- How to code Vector Auto-Regressive Model in matlab?
- Cobalt and MatchThem: Post Imputation analysis
- Analyzing Impact of a Single Independent Time Series Variable on a Cluster of Dependent Variables in R
- Is there anything equivalent to MVGC toolbox(from MATLAB) in python?
- ARIMAX exogenous variables reverse causality
- Sorting list of vector clocks (total order)?
- Can I include covariates outside of the minimally sufficient set in a causal framework that aren't in the causal pathway?
- Causality Tracking Option in Extended Events Seems To Be AWOL
- Justification for the multiplication step in the proof of the front door adjustment
- sklift inference: how to get probabilities for treatment vs no-treatment?
- Estimate significance of double difference in means
- causal mediation packages with multiple mediators
- Accounting for fixed effects in regression discontinuity (rdrobust package in R)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could use a linear model from the package
statsand use the formulaThis would partition the variance in sales that is explained by each of your variables (namely characteristics). However it is difficult to answer your question without an idea of what your dataset looks like. For a simple linear model to work your residuals need to be normally-distributed and the variances homogeneous, among other assumptions.
ADDENDUM 1 Since your treatment is an event that affects all movies in the US past 2011, you should code it as a 0/1 variable with something like
Then if you are interested in the effect of the treatment on the coefficient of some other characteristic then you are interested in the interaction between treatment and a characteristic in question. This would be coded with a
*like so:It will be important to think carefully beforehand about which characteristic should be influenced by the treatment and not to test every possible combination (I don't know how many individual movies you have (i.e. how large your n is) but if you put an interaction on every term you might have a hard time at estimating coefficients).
ALSO, you should think about the structure of your data. If you have multiple movies from the the same country, as well as multiple movies in the same year, and in the same genre, these factors may influence the sales and as such it is important to include them in your model (if they are not variables you are interested in and if there are many categories, you may include them as random effects). For example the year that the movie came out may influence the sales because it was a recession year, or because there was a pandemic or any other reason we can't quite grasp. This is a good example of when we would code year as a random effect (although there is MUCH dissent on what should or should not be used as a random effect and when it should be used as a fixed effect rather than a random effect, you can read about this here). You can use the
lme4ornlmepackages to code random effects in your model. I likelme4because of the simplicity of the coding of random effects and because it doesn't give back p-values. To get you started, here is how you would code random effects model inlme4:Let us know how it works!