I have an issue passing a variable label into one of the column headers for a frame I want to display. I have tried variations of quotes, double quotes and compound quotes but it is not helping. Guessing some illegal characters and spaces need some sanitizing? Not sure if this a very reproducible example but all of this is part of a bigger wrapper to conduct multiple Chi-square tests and post to a frame for display for exploratory analysis.
Output I get
Code:
clear webuse auto local collabel : variable label make di "`collabel'" cap frame drop test frame create test /// str100 "`collabel'" frame change test list, noobs table
Code:
. clear . . webuse auto (1978 automobile data) . local collabel : variable label make . . di "`collabel'" Make and model . . cap frame drop test . frame create test /// > str100 "`collabel'" "Make and model invalid name r(198); end of do-file r(198);
Comment