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
Poisson with Robust SE showing totally different results from Log-OLS and NBHi, This is the first time I post question here. I've read pretty much all the posts on Poisson reg…
Xtabond2 lagged endogenous variableHi there, I am estimating the relationship between growth and inequality using dynamic panel data. …
reghdfe dkraayI am having trouble with the syntax for reghdfe. I would like to run a regression using reghdfe that…
Ranking/categorizing firms based on the value of a variable in a specific yearHi I am working with a panel data set with c300 firms from years 2008 to 2014, with several firm-le…
_all: in mixed models: What if it is followed by a continuous variable without the "R." part?Dear Statalist, I am trying to better understand how Stata deals with the _all: option in mixed/xtm…
Subscribe to:
Post Comments (Atom)
0 Response to Create variables econometrics
Post a Comment