Created
February 29, 2020 17:05
-
-
Save jackbandy/e00b6291014c537bd9fb39e97a110d2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "omnidroid-bias" | |
author: "Jack Bandy" | |
date: "2/29/2020" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` | |
## Read in the data | |
```{r} | |
require(ggpubr) | |
df = read.csv('supers.csv') | |
df = subset(df,Sex!='na') | |
df = subset(df,Threat!='na') | |
df = subset(df,Rounds!='na') | |
df$Threat=as.numeric(df$Threat) | |
df$Rounds=as.numeric(df$Rounds) | |
``` | |
# visual difference of threat | |
```{r} | |
ggboxplot(df,x="Sex",y="Threat",color="Sex") | |
t.test(Threat ~ Sex, data=df) | |
``` | |
# visual difference of rounds | |
```{r} | |
ggboxplot(df,x="Sex",y="Rounds",color="Sex") | |
t.test(Rounds ~ Sex, data=df) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment