Hi, i have few question on generating new variables and calculating. I am new to stata and I dont know how to go about solving these problems below. For the first question i am assuming i need to generate a new variable and think it would be something similar to gen realwage by dividing wage/cpi but i am lost and dont know how to go about doing so. Please help me solve and explain the principles. Many thanks!!!
the variables and label are:
Array
Questions:
1. Create the real wage by deflating wage with the price index (i.e. wage/cpi).
2. Create the log of the real wage. Plot the histogram of it for the two years in the
sample.
3. Calculate the average years of education for 1995 and for 2011. Test (using a t-test)
if average education has significantly changed between those years.
Related Posts with Create variables econometrics
Radf command does not run (error 3499)Hi all, I am trying to run a GSADF test through the radf command in Stata 16. I keep getting this e…
metan on Stata 16 column nameHi everyone, I've been recently using "metan" on Stata 16 to update my previous meta-analysis resul…
Calculating and graphing moving averages in a panel data with a self-defined time variableHi everyone, I have a household-level panel data for two years. In the data, I also have the date o…
Storing regression results in a Temp Table in order to afterwards run a two sample t testHello! I am having a problem trying to perform a two sample t test on the outcome of two regression…
STATA LOOP for Data Managementfor the dataset like the following, I want to change the value of G7_A6 which is either 1 or 2 based…
Subscribe to:
Post Comments (Atom)
0 Response to Create variables econometrics
Post a Comment