GithubHelp home page GithubHelp logo

compwrap's Introduction

Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 2 column 7
---
title:compwrap (Comparison Wrapper functions)
author: Toshiaki Ara
date: "2019-03-03"
---

Introduction

This package contains two wrapper function.

  1. posthocTGH in userfriendlyscience package

This function in compwrap package accepts formula.

Installation

remote::install_github("toshi-ara/compwrap")

Example

Tukey test and Games-Howell test

Tukey method

## Default
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet, method="tukey")
##     n means variances
## 1 220   103      3210
## 2 120   123      5128
## 3 120   143      7489
## 4 118   135      4737
## 
##     diff ci.lo ci.hi    t  df    p
## 2-1 20.0  -0.3    40 2.54 574  .06
## 3-1 40.3  20.0    61 5.12 574 <.01
## 4-1 32.6  12.2    53 4.12 574 <.01
## 3-2 20.3  -2.7    43 2.27 574  .11
## 4-2 12.6 -10.5    36 1.41 574   .5
## 4-3 -7.7 -30.8    15 0.86 574  .83
## Formula interface
posthocTGH(weight ~ Diet, data = ChickWeight, method="tukey")
##     n means variances
## 1 220   103      3210
## 2 120   123      5128
## 3 120   143      7489
## 4 118   135      4737
## 
##     diff ci.lo ci.hi    t  df    p
## 2-1 20.0  -0.3    40 2.54 574  .06
## 3-1 40.3  20.0    61 5.12 574 <.01
## 4-1 32.6  12.2    53 4.12 574 <.01
## 3-2 20.3  -2.7    43 2.27 574  .11
## 4-2 12.6 -10.5    36 1.41 574   .5
## 4-3 -7.7 -30.8    15 0.86 574  .83

Games-Howell method (default)

## Default
posthocTGH(y=ChickWeight$weight, x=ChickWeight$Diet)
##     n means variances
## 1 220   103      3210
## 2 120   123      5128
## 3 120   143      7489
## 4 118   135      4737
## 
##     diff  ci.lo ci.hi    t  df    p
## 2-1 20.0   0.36    40 2.64 201  .04
## 3-1 40.3  17.54    63 4.59 176 <.01
## 4-1 32.6  13.45    52 4.41 203 <.01
## 3-2 20.3  -6.20    47 1.98 230   .2
## 4-2 12.6 -10.91    36 1.39 236  .51
## 4-3 -7.7 -33.90    19 0.76 226  .87
## Formula interface
posthocTGH(weight ~ Diet, data = ChickWeight)
##     n means variances
## 1 220   103      3210
## 2 120   123      5128
## 3 120   143      7489
## 4 118   135      4737
## 
##     diff  ci.lo ci.hi    t  df    p
## 2-1 20.0   0.36    40 2.64 201  .04
## 3-1 40.3  17.54    63 4.59 176 <.01
## 4-1 32.6  13.45    52 4.41 203 <.01
## 3-2 20.3  -6.20    47 1.98 230   .2
## 4-2 12.6 -10.91    36 1.39 236  .51
## 4-3 -7.7 -33.90    19 0.76 226  .87

compwrap's People

Contributors

toshi-ara avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.