Hello everyone,
I'm a bit surprised to have this output when reshaping long my dataset. Indeed, after looking at threads on the same topic in this forum, I found that in most cases this output appears because the string option must be specified as there could be non-numeric characters in the variable name besides the stub. However in my case I am trying to reshape 814 variables all named varname+### with ### being a number from 1 to 814. I used
to do this. My code to reshape is the following :
Where obs_number being a variable I generated as equal to _n.
I don't know if any dataex will be useful, but here's a reduced version of my data :
As expected, the reshaping works on this specific part of the dataset. But since I don't know where exactly the problem is in my 814 variables, I can't spontaneously be more helpful. If you have any lead, I'll gladly show you more of my dataset in a more helpful way.
Thank you for your help !
EDIT : I noticed that if I drop half of my varname variables in a way that my dataset goes from varname1 to varname400, the reshape command now works. Could this be a storage problem ? If so, why is the output message related to _j containing missing values ?
I'm a bit surprised to have this output when reshaping long my dataset. Indeed, after looking at threads on the same topic in this forum, I found that in most cases this output appears because the string option must be specified as there could be non-numeric characters in the variable name besides the stub. However in my case I am trying to reshape 814 variables all named varname+### with ### being a number from 1 to 814. I used
Code:
rename * varname#, addnumber
Code:
reshape long varname, i(obs_number) j(column)
I don't know if any dataex will be useful, but here's a reduced version of my data :
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str17 varname1 str19 varname2 str14 varname3 str17 varname4 byte obs_number "ID de la réponse" "Date de soumission" "Dernière page" "Langue de départ" 1 "INFO" "INFO" "INFO" "INFO" 2 "INFO" "INFO" "INFO" "INFO" 3 "INFO" "INFO" "INFO" "INFO" 4 "INFO" "INFO" "INFO" "INFO" 5 "INFO" "INFO" "INFO" "INFO" 6 "INFO" "INFO" "INFO" "INFO" 7 "INFO" "INFO" "INFO" "INFO" 8 "INFO" "INFO" "INFO" "INFO" 9 "INFO" "INFO" "INFO" "INFO" 10 end
Thank you for your help !

EDIT : I noticed that if I drop half of my varname variables in a way that my dataset goes from varname1 to varname400, the reshape command now works. Could this be a storage problem ? If so, why is the output message related to _j containing missing values ?

Comment