8000 tabmeans.svy has hard-coded Age~Sex model · Issue #3 · vandomed/tab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tabmeans.svy has hard-coded Age~Sex model #3

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 oc 7CAA casionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tslumley opened this issue Jun 6, 2020 · 0 comments
Open

tabmeans.svy has hard-coded Age~Sex model #3

tslumley opened this issue Jun 6, 2020 · 0 comments

Comments

@tslumley
Copy link
tslumley commented Jun 6, 2020

In tabmeans.svy there is the code

    if (num.groups == 2) {
        fit <- svyttest(formula, design = design)
        diffmeans <- -fit$estimate
        diffmeans.ci <- -rev(as.numeric(fit$conf.int))
        p <- fit$p.value
    }
    else {
        fit1 <- svyglm(Age ~ 1, design = design)
        fit2 <- svyglm(Age ~ Sex, design = design)
        fit <- do.call(anova, c(list(object = fit1, object2 = fit2), 
            anova.svyglm.list))
        p <- as.numeric(fit$p)
    }

I suspect the else branch was a working example or something?

I found this because of a StackOverflow question:
https://stackoverflow.com/questions/62213203/issue-with-the-tabmeans-survey-multi-categorical-variables-not-recognising-vari/62239174#62239174

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

No branches or pull requests

1 participant
0