Answered step by step
Verified Expert Solution
Question
1 Approved Answer
- - - title: Hawks Analysis author: Your Name date: 2 0 2 3 - 0 1 - 3 0 output: word _
title: "Hawks Analysis"
author: "Your Name"
date:
output:
worddocument: default
htmldocument: default
r messageFALSE, warningFALSE
librarytable
librarytolerance
libraryinfer
librarytidyverse
r includeFALSE
hawks.df read.csvHawkssubset.csv
## Comparing Tail Span in Hawks
Data were collected on random samples of three different species of hawks, Sharpshinned SS and Cooper's hawks CH
## Question of Interest
# EDA
r echoFALSE, messageFALSE, warningFALSE
table ~Tail Species, data hawks.df
## Boxplot
r echoFALSE, messageFALSE, warningFALSE
ggplothawksdf aesx Species, y Tail, colourSpecies
geomboxplot
labstitle "Boxplot of Tail Span by Species",
subtitle with mean symbol
caption "Your Name",
y "Tail Span",
x "Species"
statsummaryfunmean, geom"point", shape size color"darkblue", fill"darkblue"
themelegendposition "none"
# Confidence Interval and Hypothesis Test for the Difference in the Population Mean Tail Span
r echoFALSE, messageFALSE, warningFALSE
ttestTail ~ Species, mu conf.level
data hawks.df
## Confidence Interval for the Difference in Population Median Tail Span
r echoFALSE, messageFALSE, warningFALSE
wilcox.testTail ~ Species, conf.int TRUE,
conf.level data hawks.df
## Bootstrap CI for the Difference in the Population Mean Tail Span
r echoFALSE, messageFALSE, warningFALSE
Tail.boot hawks.df
specifyresponse Tail, explanatory Species
generatereps type "bootstrap"
calculatestat "diff in means",
order cCHSS
percentileci getciTailboot
Tail.boot visualize shadeconfidenceintervalpercentileci
labsx"Difference CH SS in Sample Mean Tail Span",
y "Frequency",
title "Hawk Analysis Bootstrap Distribution"
r echoFALSE, messageFALSE, warningFALSE
percentileci getciTailboot
percentileci
## Tolerance Intervals
## CH Species
r echoFALSE, messageFALSE, warningFALSE
CCTail hawks.df
filterSpecies inCH
selectTail dropnaTail asdata.frame
normtol.intCCTail$Tail,
alpha P side
## SS Species
r echoFALSE, messageFALSE, warningFALSE
SSTail hawks.df
filterSpecies inSS
selectTail dropnaTail asdata.frame
normtol.intSSTail$Tail,
alpha P side
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started