Dear all,
It is unfoutunate (and strange) that -anova- does not
accept string variables as factors. String variables
first need to be -encoded-. This is okay, except that
-anova,regress- does not display the value lables from
-encode- so unless you keep track of how the variable
was encoded one can not interpret the output. Is there
a way to display the output displaying the value
labels?
One possible solution might be to use the -parmest- package, together with
the -descsave- and -factext- packages (all of which are downloadable from
SSC). The -parmest- package creates an output data set with one observation
per fitted parameter of a model, or one observation per parameter per
by-group, and data on estimates, confidence limits, P-values and other
parameter attributes, including optionally the variable label of the
X-variate corresponding to the parameter. The -descsave- package is an
extended version of -describe-, which creates an output do-file capable of
reconstructing the variables described. The -factext- package reconstructs
factors (numeric or string) in the -parmest- output data set, with their
variable and/or value labels, so the user can produce plots, listings
and/or tables of estimates, confidence intervals and/or P-values with the
values of the factors displayed. A bonus is that the estimates and
confidence limits can then be displayed to a sensible number of decimal
places, and the P-values can be displayed to a sensible number of
significant figures using a format such as %8.1e.