Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with reshape

    Hi everyone,

    I have a problem with the reshape command. My dataset is long and contains information on electoral results over the years for every Italian province.
    More specifically each line corresponds to a party in a province in an election year and its votes. I also have the shares/votes of left/right votes for every province and year. However, when I try to transform it to wide it says that it is not constant within province and year.
    My command is:

    reshape wide votes share, i(province year total_elettori total_elettori_m total_votanti total_votanti_m total_schedeb) j(party votes_left votes_right share_left share_right) string


    How can I solve the issue?

    Thank you very much!
    Margherita

  • #2
    Data example using dataex please

    Comment

    Working...
    X