Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T score as opposed to z score for survey data #145

Open
mollypak opened this issue Apr 11, 2020 · 1 comment
Open

T score as opposed to z score for survey data #145

mollypak opened this issue Apr 11, 2020 · 1 comment
Labels

Comments

@mollypak
Copy link

@mollypak mollypak commented Apr 11, 2020

Hi, I see someone requested this before, and you said it doesn't seem worth it, but in order to get the correct p value and standard errors for complex survey designs (and to do what both STATA and I believe SUDAAN uses when calculating predictive margins), using the t score instead of the z score is important. I would like to ask you to possibly reconsider adding this option?

I know some parts of the survey package will do a df=Inf as a default and always use the t distribution, so that the results are the same as a z score, but can be altered, or df= degf(design). I am not sure how you wrote your code, but if a t score was always the default for results from svyglm, that would be very nice.

@leeper leeper added the enhancement label Jun 20, 2020
@leeper
Copy link
Owner

@leeper leeper commented Jun 20, 2020

I didn't implement this mainly because I didn't (and still don't) have time to do it and write the tests needed to make sure it's all correct. If you're keen, please send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.