Skip to content

Instantly share code, notes, and snippets.

@trcook
Created June 4, 2015 02:22
Show Gist options
  • Save trcook/ee147b71f7bbb6d9b7bf to your computer and use it in GitHub Desktop.
Save trcook/ee147b71f7bbb6d9b7bf to your computer and use it in GitHub Desktop.
the eccentricities of relogit

Relogit is helpful but it doesn't play nice with formulas. If using a formula in relogit, use this workaround to avoid the problem of object of type 'symbol' not subsettable

require(Zelig)
form1<-formula(x+y+z)
relogit(as.formula(form1),data=...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment