Greetings,
I am trying to generate spaghetti plots representing earnings of young people who participated in a youth employment program using this command: spagplot daily_earnings_dol survey in 1/30, id( id)
but I get the error
no room to add more variables
Up to 2,048 variables are allowed with this version of Stata. Versions are available
that allow up to 120,000 variables.
Since it is a single variable I have requested in the command, I have been perplexed by this error. Based on my reading of other posts, i suspect it is because the observations for the id variable are each coded mixtures of numbers and letters like Hhr-005e9e8-13b. I had already encoded the variable so that it is stored as a numeric "long" storage type rather than string but that hasn't resolved this issue. Does that diagnosis sound like it would cause that error message? Assuming that is the case, I need to create a new variable that gives the observations a new name but it's not so simple as just renaming them numbers from 1 to 6244 because it is a dataset of repeated measures so the same number needs to apply to between 1-6 observations depending on how many data points that person represents in the combined dataset. Do you agree that this is what is causing the error message and if so, can you give me instructions on what code will create a new variable that will assign a new numeric code for the "id" variable even though each one appears varying numbers of times within the dataset? Or do you think that would generate the same error? Of the 6244 observations, there are 2,315 unique values (so an approx. average of 3 data points per person).
Thank you very much for any guidance,
Heather
I am trying to generate spaghetti plots representing earnings of young people who participated in a youth employment program using this command: spagplot daily_earnings_dol survey in 1/30, id( id)
but I get the error
no room to add more variables
Up to 2,048 variables are allowed with this version of Stata. Versions are available
that allow up to 120,000 variables.
Since it is a single variable I have requested in the command, I have been perplexed by this error. Based on my reading of other posts, i suspect it is because the observations for the id variable are each coded mixtures of numbers and letters like Hhr-005e9e8-13b. I had already encoded the variable so that it is stored as a numeric "long" storage type rather than string but that hasn't resolved this issue. Does that diagnosis sound like it would cause that error message? Assuming that is the case, I need to create a new variable that gives the observations a new name but it's not so simple as just renaming them numbers from 1 to 6244 because it is a dataset of repeated measures so the same number needs to apply to between 1-6 observations depending on how many data points that person represents in the combined dataset. Do you agree that this is what is causing the error message and if so, can you give me instructions on what code will create a new variable that will assign a new numeric code for the "id" variable even though each one appears varying numbers of times within the dataset? Or do you think that would generate the same error? Of the 6244 observations, there are 2,315 unique values (so an approx. average of 3 data points per person).
Thank you very much for any guidance,
Heather
Comment