I have tried running the Stata code but keep getting a error message "( is not a valid command name". please, what could be the problem?
-
Login or Register
- Log in with
egen expected_routes_probit = rowtotal((id == 1) & p_entry_probit ///
(id == 2) & p_entry_probit ///
(id == 3) & p_entry_probit ///
(id == 4) & p_entry_probit ///
(id == 5) & p_entry_probit ///
(id == 6) & p_entry_probit ///
(id == 7) & p_entry_probit)
egen expected_routes_logit = rowtotal((id == 1) & p_entry_logit ///
(id == 2) & p_entry_logit ///
(id == 3) & p_entry_logit ///
(id == 4) & p_entry_logit ///
(id == 5) & p_entry_logit ///
(id == 6) & p_entry_logit ///
(id == 7) & p_entry_logit)
probit entry pop tourist dist twohub onehub N, robust predict p_probit gen p_entry_probit = normal(p_probit)
logit entry pop tourist dist twohub onehub N, robust predict p_logit gen p_entry_logit = logistic(p_logit)
Comment