Hello experts
I'm trying to perform a Stratification-Multilevel analysis using the hte package. However, when I use any of my variables as a factor, I get the following error:
factor-variable and time-series operators not allowed
r(101);
The code works when my variables are not indicated as a factor, as shown below:
hte sm Filhos_Total sup racac idade ocuppaic migagreg Escpais maeadol urbc [pw=V32039], estcom(poisson) noisily
The problem occurs when I indicate that one of them is a factor, as with the i.ocuppaic variable in the code bellow:
hte sm Filhos_Total sup racac idade i.ocuppaic migagreg Escpais maeadol urbc [pw=V32039], estcom(poisson) noisily
Does anyone know what is happening? Is it a sintax error?
Related Posts with factor-variable and time-series operators not allowed r101
interaction variable with i. operatorI want to run the following regression Code: reghdfe ABPROD BORDERLINE POST BORDERLINE_POST i.sic…
Double loops in Stata?Dear All, I want to do the following: Code: local replace replace forvalues i = 2007(1)2017 { for…
How to count each binary variables and only generate one variable to include all count information?Hi there, I have a set of binary variables and each of them stands for a certain health disease (e.…
discrete-time survival analysis (xtcloglog)Hi everyone, I am running a discrete-time survival analysis about firm survival on an unbalanced pan…
Difference-in-Difference with continuous variables and fixed effectsDear Stata friends I try to run a difference-in-difference regression with a continuous treatment (…
Subscribe to:
Post Comments (Atom)
0 Response to factor-variable and time-series operators not allowed r101
Post a Comment