# How to get your own working directory --
getwd()
## [1] "/Users/pamela/Desktop"
# to set your working directory, you type in: setwd()
#and inside the parentheses using quotation marks, type in the file pathway for where you want to save/upload files
# (e.g. for me my ideal working directory where I want to save files and where my data is stored is "/Users/pamela/Desktop").
# Therefore, the code I use to set my working directory is:
setwd("/Users/pamela/Desktop")
# write code to set your working directory by pasting in the working directory pathway where XXX is currently listed now
setwd("/Users/pamela/Desktop")
Uploading my data file now!
dt <- as.data.frame(read.spss("data.sav"))
Demographic Data Plots
plot(as.factor(dt$DE1), main="Gender", family="Times New Roman", cex.name=0.4, las=2)

plot(as.factor(dt$DE10), main="Race (Discrete)", family="Times New Roman", cex.name=0.4, space=.5, las=2)

plot(as.factor(dt$Race), main="Race Categories (Repeat)", family="Times New Roman", cex.name=0.4, space=.5, las=2)

plot(as.factor(dt$DE12), main="Age", family="Times New Roman", cex.name=0.75)

Note:
Reminder for us to come up with an age cutoff (~30-35-ish) for our
analysis sample
plot(as.factor(dt$DE3), main="Hispanic Identity", family="Times New Roman", cex.name=0.75)

Note:
There are some odd values in the Hispanic/latino variable (2 and 4);
let’s be sure to review + recode/clean
plot(as.factor(dt$DE5), main="Sexuality", family="Times New Roman", cex.name=0.75)

plot(as.factor(dt$DE8), main="US Born?", family="Times New Roman", cex.name=0.75)

BASC Data Plots
plot(as.factor(dt$BA_ALC), main="BASC Alcohol", family="Times New Roman", cex.name=0.5)

Note:
Can you check what the theoretical range of this is? These scores
feel lower than the other BASC subscale items
plot(as.factor(dt$BA_SR), main="BASC Self-Reliance", family="Times New Roman", cex.name=0.5)

plot(as.factor(dt$BA_SEN), main="BASC Sensation Seeking", family="Times New Roman", cex.name=0.5)

plot(as.factor(dt$BA_SCH), main="BASC School Maladjustment", family="Times New Roman", cex.name=0.5)

plot(as.factor(dt$BA_INT), main="BASC Interpersonal Relations", family="Times New Roman", cex.name=0.5)

BMMRS Data Plots
plot(as.factor(dt$PCOPE_Sum), main="BMMRS Positive Coping", family="Times New Roman", cex.name=0.5)

Note:
Can you confirm for me what higher scores on this mean (is it that
folks have ore positive coping, or that they’re not doing as much
positive coping (i.e. higher scores are worse). Ditto BMMRS negative
coping below
plot(as.factor(dt$NCOPE_Sum), main="BMMRS Negative Coping", family="Times New Roman", cex.name=0.5)

APS Symptoms Data Plots
#Prime Screen
plot(as.factor(dt$PR.RX), main="Prime Risk Status", family="Times New Roman", cex.name=0.5)

plot(as.factor(dt$PR.T), main="Prime Screen Sum", family="Times New Roman", cex.name=0.5)

#PQ
plot(as.factor(dt$PQ.T), main="Prodromal Questionnaire Sum", family="Times New Roman", cex.name=0.5)

Substance Use Data Plots
plot(as.factor(dt$DH9), main="Substance Use Lifetime", family="Times New Roman", cex.name=0.5)

Note:
Would you be able to dig in here and see if this can be broken down
by substance type? A bit curious if we are going to go into substance Qs
to see what this is actually being driven by, re: substance
type
Trauma Data Plots
plot(as.factor(dt$LE.T), main="Total Traumatic Events Experienced", family="Times New Roman", cex.name=0.5)

plot(as.factor(dt$LE.sT), main="Total Traumatic Events Experienced - Self", family="Times New Roman", cex.name=0.5)

Next step To Do List for SB:
-
Think about limiting age range (cutoff in 30’s) depending on research
question we come up with and if we want to reference early ID
literature
- Let’s data clean
the Hispanic variable (DE3)
-
Check what the possible range of the BASC Somatization subscale is
- Confirm
meaning/interpretation of BMMRS coping scores
- Pull
data for lifetime substance type use, if we have it!
-
Cheer yourself for doing a great job in data vis + analysis step 1! Go
you!