I have a stata-format (.dta) file created by another program (HLM). Stata correctly opens the file and works appropriately EXCEPT the file produced by HLM has two variables named the same thing (PV1, from the column residuals files in HCM3 in case it's important).
Within Stata, "PV1 ambiguous abbreviation" prevents any operations on these variables, including renaming. All I need to do is rename one of the variables so the name is not a duplicate. I've tried edit mode, but that just calls the command line. I've tried exporting to fix elsewhere, but get the same error. I suspect the solution involves renaming based on column number or something similar?
This is obviously an HLM bug. But I'm hopeful I can make it work from within the Stata file (rather than having to stat transfer or do something else to get a valid Stata-format file), as all the other residuals files are exporting correctly and my models take hours to run. The data are not duplicates - i.e. each column has a distinct meaning with different values - and the order in which they are present in the data tells me that meaning. I've searched the forums to no avail.
Thanks for whatever help you can provide.
Within Stata, "PV1 ambiguous abbreviation" prevents any operations on these variables, including renaming. All I need to do is rename one of the variables so the name is not a duplicate. I've tried edit mode, but that just calls the command line. I've tried exporting to fix elsewhere, but get the same error. I suspect the solution involves renaming based on column number or something similar?
This is obviously an HLM bug. But I'm hopeful I can make it work from within the Stata file (rather than having to stat transfer or do something else to get a valid Stata-format file), as all the other residuals files are exporting correctly and my models take hours to run. The data are not duplicates - i.e. each column has a distinct meaning with different values - and the order in which they are present in the data tells me that meaning. I've searched the forums to no avail.
Thanks for whatever help you can provide.
Comment