Hello,
I am facing an issue with the following code:
I am getting the error message: "type mismatch".
I assume that it happens because Stata cannot find the archive weight_munic. However, I am not sure why I am facing this error.
Here is a link with the data and the codes I am working on: https://www.dropbox.com/sh/iq2j1ok64...9fjViFyba?dl=0
I am facing an issue with the following code:
Code:
clear import delimited "\\fs02\mdealmei$\Downloads\munic_4674.txt", numericcols(1) clear destring longitude latitude, replace capture drop if missing(longitude) capture drop if missing(latitude) spmat idistance weight_munic longitude latitude, id(id_municipio) norm(row) save weight_munic, replace import delimited "\\fs02\mdealmei$\Downloads\tax_base.csv", clear use "\\fs02\mdealmei$\Dokumente\weight_munic.dta" xtset id_municipio year cd "\\fs02\mdealmei$\Dokumente" use weight_munic.dta, clear svmat weight_munic, names(w) xtmoran real_income_tax, wname(w) morani(2009)
I assume that it happens because Stata cannot find the archive weight_munic. However, I am not sure why I am facing this error.
Here is a link with the data and the codes I am working on: https://www.dropbox.com/sh/iq2j1ok64...9fjViFyba?dl=0
Comment