Dear Stataforum
First, I want to thank all Stataforum contributors for your yeoman service. I have benefited enormously over the years from the forum.
I have a dataset of retail workers and would like to study the effect of store renovation on their exit, controlling for worker fixed effects. (From interviews, I understand that the renovation affects workers differently.) I tried a duration model (stcox) with worker fixed effects (frailty) but it would not converge, and anyhow, the plot shows that the data do not satisfy proportional hazards.
Next, I tried clogit with group(worker) but the frequency of exits (about 2.7 percent of the data) is so low that the routine does not converge.
So then, I tried firthlogit. It worked as follows:
. firthlogit exit conv age_ln ot_ih i.cashier i.year if $sample & cashier == 1 & sgpr == 1 & new == 1
where exit = exit, conv = renovated store (time varying), age_ln = ln(worker age), ot_ih = overtime, and $sample, cashier, sgpr, new are restrictions on the sample.
Not sure how to incorporate the worker fixed effects, I tried,
. firthlogit exit conv age_ln ot_ih r i.cashier i.year if $sample & cashier == 1 & sgpr == 1 & new == 1
But firthlogit complained and returned
"note: 1.cashier omitted because of collinearity
initial vector: matrix must be dimension 10
r(503);"
Grateful for your advice.
Best
IP
Related Posts with firthlogit: initial vector: matrix must be dimension 10
How to split a variable with unequal length into multiple variablesI have a variable named var_0 with responses ranging from missing to maximum length 3. It has no del…
Predicting by using past return (out of sample)Hi everyone, I have to questions; my task is to try to predict future stock return by using last mo…
How to split a local, into shorter locals?Good morning, I would like to know how to split a local that is too long (for some purpose) into a …
One-sample proportions test for clustered dataHi there, Thanks in advance for any help that you're able to provide. I'm conducting a repeated-me…
Saving value (N or percentage) after a tabulate command and using it in putdocxHi STATA-users, I ´d like to write my report directly in stata with the putdocx tool and want to re…
Subscribe to:
Post Comments (Atom)
0 Response to firthlogit: initial vector: matrix must be dimension 10
Post a Comment