8000 Looping over outcome variables in for T-tests · Issue #9 · boothresearch/action-inaction · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Looping over outcome variables in for T-tests #9
Open
@luizaandrade

Description

@luizaandrade

The following code is used repeatedly to run T-tests:

preferenceb<-t.test(data1b$preference, mu = 0)
report(preferenceb)
competenceb <- t.test(data1b$competence, mu = 0)
report(competenceb)
normativeb<-t.test(data1b$normative, mu = 0)
report(normativeb)
regretb<-t.test(data1b$regret, mu = 0)
report(regretb)

It would be more efficient to loop variables and run the T-tests for each of them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0