Skip to content
Prev 18201 / 29559 Next

Endogenous explanatory variables in sphet

On Mon, 6 May 2013, Feichtinger, Paul wrote:

            
I suggest that you install the development version of sphet from R-forge:

install.packages("sphet", repos="http://R-Forge.R-project.org")

and look for spreg(), which is a wrapper function for the model-fitting 
functions. You should look for the endog= and instruments= arguments, 
where:

spreg(formula = CRIME ~ HOVAL, data = columbus, listw = listw,
     endog = "INC", instruments = "DISCBD")

is an example of usage.

Hope this helps,

Roger