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
Unclear Seasonality & Strange Structural Break TestI'm getting odd results with time-series data and I'm trying to interpret them to find seasonality. …
filling in missing observations?Here is part of my dataset, the same id means the same person, how to fill in missing values in name…
gaps in panelI have panel data of two year survey as the example below: * Example generated by -dataex-. To inst…
svy, subpop, missing values1) Can someone point me to a resource that explains why the linearized S.E. and the logit transforme…
filling in missing values:how to realize the logic?Take the example from the picture below, if missing values exist in stress(observation 1), then chec…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming dataset with several variables and a 'value' variable
Post a Comment