Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 56216

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

3 votes
Accepted

Estimating a peer effects model in R

The answer is as simply as this: lagsarlm(y ~ x1 + x2, data=reg_data, listw=G, method="eigen", quiet=FALSE, zero.policy = FALSE, tol.solve=1e-14, type="mixed") type="mixed" estimates a Spatial D …
MERose's user avatar
  • 419
4 votes
1 answer
525 views

Estimating a peer effects model in R

Because of the high similarity, I tried Roger Bivand's spdep package for R. …
MERose's user avatar
  • 419
0 votes
1 answer
180 views

Can Marginal effects and Incidence Rate Ratios be exactly the same?

To showcase my problem using the mfx package for R: library("AER") library("mfx") data("Journals", package="AER") mod1 = negbinmfx(citations ~ price + pages, data = Journals) summary( …
MERose's user avatar
  • 419
0 votes

Can Marginal effects and Incidence Rate Ratios be exactly the same?

The answer to this riddle is simple: $fit does not contain what I was looking for. It contains the parameters of the model that mfx() wraps. To see this, the output of mod1 is Call: negbinmfx(formula …
MERose's user avatar
  • 419