Hey Stata friends,
I got an issue with my dataset that I cannot solve my own. My dataset looks as follows:
ID-CompanyName-Year-Month-Var1-Var-2-Var-3-Var4
1-Apple-2020-1-.-.-.-1
1-Apple-2020-1-.-.1-.
1-Apple-2020-1-.-1-.-.
1-Apple-2020-1-1-.-.-.
2-Banana-2020-1-.-.1-.
2-Banana-2020-1-.-.1-.
2-Banana-2020-1-.-1-.-.
2-Banana-2020-1-1-.-.-.
3-Citrus-2020-1-.-.1-.
3-Citrus-2020-1-.-.1-.
3-Citrus-2020-1-.-1-.-.
3-Citrus-2020-1-1-.-.-.
What I want in the end is 3 observations with all the data in it. so I want to group the data so that I got one observation with the 4 vars filled. Can anyone be my savior?
Siebe
I got an issue with my dataset that I cannot solve my own. My dataset looks as follows:
ID-CompanyName-Year-Month-Var1-Var-2-Var-3-Var4
1-Apple-2020-1-.-.-.-1
1-Apple-2020-1-.-.1-.
1-Apple-2020-1-.-1-.-.
1-Apple-2020-1-1-.-.-.
2-Banana-2020-1-.-.1-.
2-Banana-2020-1-.-.1-.
2-Banana-2020-1-.-1-.-.
2-Banana-2020-1-1-.-.-.
3-Citrus-2020-1-.-.1-.
3-Citrus-2020-1-.-.1-.
3-Citrus-2020-1-.-1-.-.
3-Citrus-2020-1-1-.-.-.
What I want in the end is 3 observations with all the data in it. so I want to group the data so that I got one observation with the 4 vars filled. Can anyone be my savior?
Siebe

Comment