Skip to content
Prev 275086 / 398506 Next

plotting average effects.

i will include the data to read if if you so choose.

dat <- read.dta("http://quantoid.net/hw1_2011.dta")

model in question:

mod99 <- glm(democracy ~ popc100kpc + ngrevpc, data=dat, family=binomial)
------------------

looking for average effects code, with error on mod99.  popckpc is coded in
1k per capita.
----
breaking the variable into groups:
+ 	apply, 2, mean)
----
and finally attempting to plot:
+ 	ylab="Predicted Probability", axes=F)
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
Error in axis(1, at = 1:10, labels = rownames(means), las = 2) : 
  'at' and 'labels' lengths differ, 10 != 4
--------


I am not sure how to fix the error.  Thank you for your time.




-----
Ph.D. Candidate
--
View this message in context: http://r.789695.n4.nabble.com/plotting-average-effects-tp3923982p3925945.html
Sent from the R help mailing list archive at Nabble.com.