IQSS / Zelig4

Old version of the statistical package Zelig, v4.x. New version is in the Zelig repo.
GNU General Public License v2.0
15 stars 6 forks source link

Add smarter parameter processing to setx #16

Closed whatever closed 12 years ago

whatever commented 12 years ago

Currently setx requires something like:

setx(z.out, age = sum(turnout$age))

where turnout is the data.frame and age is a column within turnout

Let's support syntax that's like this: setx(z.out, age = sum(age))

That is, intelligently process parameters in the function. This can be simply done with the with function

whatever commented 12 years ago

Making this a requirement for beta, since it immensely simplifies using Zelig, and makes function calls make semantic sense

whatever commented 12 years ago

That syntax now works. I think it's a huge intuitive improvement