I am interested in comparing a linear trend model with 1) power trend, 2) exponential trend, and 3) logarithmic trend models - comparing models using estimated AIC and BIC to identify the one that best fits my data.
I had a play with a sample dataset and wanted to make sure my models are well specified - grateful for any comment/suggestion for improvement:
clear
use http://www.stata-press.com/data/r16/friedman2.dta
* Create a time variable - rather than using the existing one (yearquarter)
g timen = _n
* Log variables
g ln_consum = log(consump)
g ln_time = log(timen)
* Linear trend model
regress consum timen
estat ic
* Exponential trend model
regress ln_consum timen
estat ic
* Power trend model
regress ln_consum ln_time
estat ic
* Logarithmic trend model
regress consum ln_time
estat ic
Related Posts with Trend analysis
Difference-in-difference analysisHello, I'm doing a difference-in-difference analysis to show the impact of removing financial incent…
Heckman selectionHello friends, I am trying to run a model about ethnic pay gap and use heckman selection method to …
Question about Interaction term & collinearity in Logistic regression.Hi. During Logistic regression, I have a question about interaction term. I want to identify the rel…
Does my fixed effects regression set-up make sense?I have a 4 wave panel of children's height and weight and parental employment. Anthropometric measur…
practicegg …
Subscribe to:
Post Comments (Atom)
0 Response to Trend analysis
Post a Comment