Hello,
I'm very new to stata and i'm trying to define a label but i'm running into an issue with double quotes. I can get around the double quotes by wrapping that specific row with ` and ' at the end.
The issue then becomes the semicolon it will cut the string off if there is a semicolon in the string.
example
label define lblTemp
0 "This is a test"
1 `"This person is a ""Test"" only"'
2 `"This person is a ""Test"" only; Unless there are more people then he will be ""TEST2"""'
;
label values VarTest lblTemp
What will happen is 1 and 2 will have the same value because it is cut off at the semicolon. How can I get around this? I want to show it exactly like it is between the first and last double quote.
Thank you
I'm very new to stata and i'm trying to define a label but i'm running into an issue with double quotes. I can get around the double quotes by wrapping that specific row with ` and ' at the end.
The issue then becomes the semicolon it will cut the string off if there is a semicolon in the string.
example
label define lblTemp
0 "This is a test"
1 `"This person is a ""Test"" only"'
2 `"This person is a ""Test"" only; Unless there are more people then he will be ""TEST2"""'
;
label values VarTest lblTemp
What will happen is 1 and 2 will have the same value because it is cut off at the semicolon. How can I get around this? I want to show it exactly like it is between the first and last double quote.
Thank you
Comment