2026-01-21
Make a folder for our class!
BSTA_512_W25 to indicate the class and the termMake these folders in your computer (or in OneDrive if you prefer)
For a project, I have the following folders
For our class, I suggest making one folder for the course with the following folders in it:
Way to designate a working directory: basically your home base when working in R
We have to tell R exactly where we are in our folders and where to find other things
A project makes it easier to tell R where we are
Basic steps to create a project
Go into RStudio
Create new project for this class (under File or top right corner)
BSTA_512_W25 folderOnce we have projects, we can open one and R will automatically know that its location is the start of our working directory
Only make one project for now!!
here packageWithin your console, type here() and enter
getwd() as well[1] "/Users/wakim/Library/CloudStorage/OneDrive-OregonHealth&ScienceUniversity/Teaching/Classes/BSTA_512_26W/BSTA_512_26W_site"
[1] "/Users/wakim/Library/CloudStorage/OneDrive-OregonHealth&ScienceUniversity/Teaching/Classes/BSTA_512_26W/BSTA_512_26W_site"
here can be used whenever we need to access a file path in R code
There is extra data management skills that we need to address these
Let’s walk through categorical variables that have multiple selections
re_black indicates the mean difference in IAT score between those who identify as Black or African American and those who do not identify as Black or African AmericanLab 1: Feedback and Discussion