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
Merge ifHello, Hi, I want to use merge, but the problem is that my using data set is an already appended da…
Panel Data, one year dummy variable omitted because of collinearityHi everybody, I'm using panel data to examine the effect of CEO age on tone and readability of annu…
Quadratic assignment procedure: syntax for estimation commandI am running a qap command (from SSC), using one half (upper triangle) of a square matrix with the s…
Getting p-values for variablesI am doing a logistic regression using three predictor variables: country, age group, and gender. Is…
Multiple lineal regression / Dummy variable, interactions and confounding variablesHi. I apologize if this is no a question I should post here. I am trying to analyze the interaction …
Subscribe to:
Post Comments (Atom)
0 Response to New to STATA and could use some help
Post a Comment