metareg with categorical data

Dear all,

Can you let me show me the code for performing a metaregression using categorical data? I tried the following and this is the output:

metareg logor continents, wsse(selogor)
string variables not allowed in varlist;
continents is a string variable

Can someone help please? Thank you.

Best wishes,


Less is more. Stay pure. Stay poor.
Are you using R? If so, the warning is saying a used variable is formatted as a string, "character string", like words. Not familiar with the procedure, only used it a couple of times, but it likely wants a 'factor' variable. If the variable is truly a factor, otherwise know as a categorical variable, you can reformat it. The an easy way is:
my_variable = as.factor(old_variable)

or some code real close to this.