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?
Related Questions in R
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in LINEAR-REGRESSION
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in PANEL-DATA
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in PLM
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in CAUSALITY
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
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?
Popular Tags
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)
You could use a linear model from the package
stats
and 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
lme4
ornlme
packages to code random effects in your model. I likelme4
because 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!