I tried to convert my key variable "name" from strL to str# to merge two datasets.
However, the error code r(109) continues to occur.
I've tried the following:
. describe name
storage display value
variable name type format label variable label
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
name strL %-20s Name of owning party <party-name>
. gen len=length(name)
. summ len
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
len | 21,022,429 22.72522 9.84456 1 818
. recast str818 name, force
name: str818 invalid
r(109);
Also, I tried to compress command then I obtained
. compress name
(0 bytes saved)
Does anyone have an idea to solve this problem?
Thanks in advance
Related Posts with convert strL to str#
Interflex graph region whiteHi, does anybody know if there is a way to change the background colour from light blue to white wit…
Difference in difference Post and Treatment dummiesI want to apply a difference in difference estimations to observe differences in the dependent varia…
opreg with IfHi Profs and Colleagues, I wonder if there is any difference between these two codes #1 & #2. I…
Histogram formattingHello, I am trying to format the x axis of a histogram with a specific range. I want to have a bmi …
standard error double lasso with clusteringHi, I am using the new cluster feature for LASSO in stata and I am a little confused by the way the…
Subscribe to:
Post Comments (Atom)
0 Response to convert strL to str#
Post a Comment