This is our second class and our professor has thrown this at us without ever using STATA before,
Playing with data: Load the UNRATE data set into STATA. (UNRATE can be found in the in-class exercises in blackboard.)
Create a time variable called t that starts at 1 and counts up by 1 every period. You can use the “gen” command to create variables and “_n” will refer to the row number. The full command will be “gen t = _n”. Is t in months, quarters or years?
Show me a scatter plot of your data over time t. Print out the picture.
Show me a regression with time as the independent variable and unemployment as the dependent variable. Print the results here.
Analyze your results. Is time a significant predictor of unemployment? What direction does it go in?
What’s the R^2 of your result?
Create an indicator variable called “trump_term” that has the value 1 since Trump took office and 0 otherwise. (He took office in Jan 20, 2017.) Include it in your regression. Print your results.
Analyze your results. Is “trump_term” significant/positive/negative?
What direction does it go in?
What happens to the time variable after adding trump_term?
What’s the R^2 of your result? How did it change from the previous estimation?
Print all of your effective code for this exercise.
Can anyone help me with this over private message to understand atleast where to begin, thank you.
Related Posts with New to STATA and could use some help
Merging Datasets With Unequal ObservationsDear All, First and foremost, this is my first post here so hello everyone and look forward to bein…
Using Mvmete for multiple outcomes and multiple treatments?Can anyone help with Mvmeta. I am trying to analyse some complex data looking at the effect of an s…
Modifying a dataset to facilitate mergingHello, I am working with NHANES data and have been merging datasets together using a 1:1 merge with…
import delimited and loopDear Statalisters, i am trying to import 40 csv files into one dta file using import delimted and fo…
forvalues loop with the use of local valuesI got stuck in using forvalues with local values. I have variable x as an integer 1-100. I would lik…
Subscribe to:
Post Comments (Atom)
0 Response to New to STATA and could use some help
Post a Comment