Closed mbsabath closed 7 years ago
Thanks for reporting this @mbsabath. I'll take a look.
Actually, the more I think about it, and in conjunction with thoughts from @cchoirat and @izahn, I think we should deprecate Zelig survey and replace it with a vignette on using the survey package with to_zelig
.
Consistently and accurately passing all of the possible survey arguments and design objects has been difficult and hard to test.
The relevant parts of the actual output from surveyglm
is I think just a usual glm
fitted model object.
Thoughts?
Rather than completely deprecating zelig survey in an upcoming release maybe we should have it:
Issue a warning saying that it is unstable and then
Give a link to a vignette on how to use to_zelig
to convert surveyglm
fitted model objects in setx
.
Implemented in 21171f7ef036db294142f18ebc7924850c144bdc
I wonder if the warning's wording should be stronger. Currently:
Warning message:
Not all features are available in Zelig Survey.
Consider using surveyglm and setx directly.
For details see: <http://docs.zeligproject.org/articles/to_zelig.html>.
Merge into master and ready for CRAN release
Results from the Normal Survey Regression example 1 on my machine don't match the results in the vignette. The results are independent of the random seed used. My personal theory as to the cause of this is that there is a vector of weights mentioned in the code, as well as in the text of the vignette, that is not created or included as part of the data set up code.
Published Results:
My Results: