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
interpreting interaction effects continuous by categorical variablesHi all, I am having difficulty to interpret interaction effects. I watched some videos and read for…
Problem with asdoc table 3 wayHi all, I am continually having problem with the results with asdoc in a table 3 way, example: Co…
Creating date variableHello! How could I possibly create a new date variable in the monthly format for the data example b…
Adjusting the Scale of Cluster GraphHey everybody, I am currently conducting a cluster analysis in Stata and I have a small problem. As…
Nationwide inpatient sampleHi everyone, I started to learn STATA for my NIS data analysis recently. I have no experience of us…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming dataset with several variables and a 'value' variable
Post a Comment