Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with xtmoran

    Hello,

    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 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

  • #2
    Please, could someone help me?

    Comment


    • #3
      as per the FAQ, please provide a -dataex- example within CODE blocks

      note that, as explained in the FAQ, many of us will not open binary files from people we don't know
      Last edited by Rich Goldstein; 13 Jul 2023, 12:56.

      Comment

      Working...
      X