I would prefer to replace these with something shorter like "N" and "%" permanently. Currently I am working harder and stupider by running a collect label levels command after the table command.
Thanks
Thanks
sysuse auto * clear all collections from memory collect clear * define your result labels collect label levels result /// fvfrequency "N" /// fvpercent "%" /// , modify * save your labels to a file collect label save myfvlabels, replace * specify your result labels file in option -label()- table (var) (result), /// statistic(fvfrequency for rep) /// statistic(fvpercent for rep) /// label(myfvlabels)
---------------------------------- | N % ---------------------+------------ Car origin=Domestic | 52 70.27 Car origin=Foreign | 22 29.73 Repair record 1978=1 | 2 2.90 Repair record 1978=2 | 8 11.59 Repair record 1978=3 | 30 43.48 Repair record 1978=4 | 18 26.09 Repair record 1978=5 | 11 15.94 ----------------------------------
{ "LabelIncludes": [ "dimension", "result" ] }
{
"LabelIncludes": [
"dimension",
"result",
"myresult"
]
}
{ "Labels": { "Results": { "fvfrequency": { "table": "N" }, "fvpercent": { "table": "%" }, "fvproportion": { "table": "Proportion" }, "fvrawfrequency": { "table": "N (unweighted)" }, "fvrawpercent": { "table": "% (unweighted)" }, "fvrawproportion": { "table": "Proportion (unweighted)" } } } }
set collect_label mydefault table (var) (result), /// statistic(fvfrequency for rep) /// statistic(fvpercent for rep)
Comment