Category "stata"

Replication for SVAR

I am using Stata and studying VAR, Orthogonalized VAR, Structural VAR. I successfully replicated VAR and OVAR, but I failed to do that for SVAR. Could anyone su

Stata spmap legend key symbol and legend text off not aligned

I am creating a filled geographical map. I think I have what I want, but for some unexplained reasons, the legend key and the legend text are not in the same li

Force y axis to start at 0 and still use automated labeling

I have a plot whose y min starts well above 0. But I want to include 0 as the min of the y-axis and still have Stata automatically create evenly-spaced y-axis l

Displaying percentages on Y-axis

How can I display % on Y-axis? I can edit the values in the Graph Editor but don't know how this can be done via a script as I am creating several graphs in a l

Merge rows with unique ID in stata

I have a dataset where I need unique county FIPS codes that need to be merged. The dataset looks like: FIPS yr1990 yr2000 yr2010 1001 1 0 1 1002 1

How to label y axis in coefplot?

How do I label/rename the variables on y axis? sysuse auto, clear regress price mpg trunk length turn if foreign==0 estimates store Option1 regress price mpg tr

How to create an origin-destination matrix from two vectors (in R or Stata)

I have a dataset of commuting by individuals, like this: id Origin Destination 1 1 3 2 1 4 3 2

How to fill in missing values by group?

I have the following data structure. Within each group, some observations have missing value. I do know that each group has only one non-missing value (10 for g

read Stata File .dta version 69 in python

When using pandas.io.stata.read_stata or pandas.read_stata I receive: ValueError: Version of given Stata file is 69. pandas supports importing versions 105, 108