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
website/url to download strs.adoHi, I would like to download strs.ado to an offline computer. The link http://www.pauldickman.com/su…
Problem with xtivreg2: variable not found, but created.Hi! I am trying to run the loop below but it returns error r(111) lt3m_qe not found . However, this…
How to specify permutation test (randomization inference) for difference-in-differences?I'm conducting a difference-in-differences (DID) analysis with a low number of groups (N=6, T=24). F…
Heckman Two-Step ModelHi, I am trying to estimate the effect of having a female director on board on earnings management. …
IVREG - First-stage marginal effectsDear all, I am running a IV regression using ivreg; Code: ivregress total i.year i.month i.HHID c…
Subscribe to:
Post Comments (Atom)
0 Response to Create variables econometrics
Post a Comment