#install.packages("tidymodels")
library(tidymodels)
<- initial_split(data, prop = 0.5)
my_data_splits
<- training(my_data_splits)
exploratory_data <- testing(my_data_splits) test_data
Generating Hypotheses
Activity Objectives
This is your first in a series of notebooks which will build to a completed analysis and inference regarding a topic of interest to you. Dr. Duryea and Dr. Gilbert have identified several biological data sets and have made them available to you. Throughout this activity, you’ll practice the following skills.
- Split an available data set into an initial exploratory set and a test set with which you’ll test inferential claims.
- Conduct an initial exploratory analysis using your exploratory set and use those explorations to generate hypotheses.
Your Tasks
Please complete the following tasks using what you’ve learned about R and exploratory analyses so far.
- Look through the data sets that Dr. Duryea and Dr. Gilbert have posted. Identify the one that you’d like to work with over the next two weeks.
- Open an RStudio Session and then use
File -> Recent Projects
and select theBioStatisticsAnalysis
project from the list to open it. - Open a new Quarto Notebook in your project and save it using a meaningful file name.
- Read your data into your quarto notebook.
- Split your data into exploratory and test data using code of the following form:
Look at your
exploratory_data
identify some interesting questions after you understand the variables included in your data set.Conduct exploratory analyses to generate some hypotheses about the answers to your interesting questions. Write those hypotheses down.
Use the Git tab in the top-right of the RStudio window to
Pull -> Commit -> Push
your changes to your repository.