GithubHelp home page GithubHelp logo

vandomed / tab Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 5.0 1.3 MB

Create Summary Tables for Statistical Reports

License: GNU General Public License v3.0

R 100.00%
tables reports manuscripts reproducible-research statistics

tab's People

Contributors

sgibb avatar vandomed avatar

Stargazers

 avatar  avatar

tab's Issues

Not able to display stratified analysis

When I try to do stratified analysis:

cox.vac <- coxph(Surv(Days, infected) ~ Vaccinated + strata(institute) , data = Data_Cox)
tabcoxph(cox.vax)

I get an error:

Error in 1:locs[1] : NA/NaN argument

tabmeans.svy has hard-coded Age~Sex model

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.