Hello, I am trying to set a Panel with information from countries but I need to keep only those in which 2 of the variables have at least 6 observations each... Can someone help me?
-
Login or Register
- Log in with
use "/Users/trinidad/Desktop/Tarea 2 Econ/Income-and-Democracy-Data (1).dta" . browse *Pregunta 1* *hacer un panel de datos y quedarse con países con al menos 6 observaciones de PIB per cápita y democracia al mismo tiempo* *1 hay que usar encode para transfromar country (string) a una variable numérica* *para que no se de doble identificación hay que seleccionar aquellos países con al menos 6 observaciones al mismo tiempo* encode country, generate (numeric_country) xtset numeric_country year list numeric_country year bysort numeric_country year fhpolrigaug lrgdpch: keep if _n>=6
Comment