Dear all,
I have a problem in Stata that I have been struggling with for quite some time now.
As you can see in the screenshot I have a database whereby I have a variable 'Item' which includes seven characteristics belonging to a certain company in a certain year (such as employees, sales, profit etc). I have a seperate variable called 'value' whereby the value of these Item variables is displayed. I however want to have my dataset in the form whereby the Item characteristics are seperate variables, and their values are displayed for every company observation in the given year.
I have tried to transform my data, but I cannot get the values of the Item characteristics displayed for all years of the company, but only for when the 'Item' equals the certain characteristic (see screenshot).
Can someone help me with a command or way to get this right?
Thank you very much in advance.
Kind regards,
Nathalie
Related Posts with Transforming dataset with several variables and a 'value' variable
generate survey of the month from periodi have consumption data of household and want to create survey of the months from PERIOD_FROM and PE…
How to locate Mata function called by lpoly?I am using Stata 14.0 with mac OS 10.15. I would like to produce a modified version of the command -…
How to insert results tablesHi Everyone. I want to get assistance but I am unable to insert my result tables on here. I can't s…
xtscc: remove constant term from differenced estimationHello, I am estimating a first difference model of this kind: d.y= d.x1 + d.x2 + d_t*. where x1 and …
How to save IV first stage (preferably using ivregress and esttab commands)Hello I want to estimate a model like this: Code: xi: ivregress 2sls depvar (ib3.instrumented = …
Subscribe to:
Post Comments (Atom)
0 Response to Transforming dataset with several variables and a 'value' variable
Post a Comment