Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use R Studio a. Make sure you install and library below four packages - AppliedPredictiveModeling - caret - corrplot - pls b. Load the data
Use R Studio a. Make sure you install and library below four packages - AppliedPredictiveModeling - caret - corrplot - pls b. Load the data set by running R code: data(permeability) After you load the dataset, you will see two subsets- fingerprints and permeability show up on the right-hand side of the RStudio window (under the Global Environment). fingerprints subset is the predictors subset, which contains the 1107 binary predictors indicating the presence or absence of substructures of a molecule. permeability is the outcome subset. Then, please proceed to explore answers for below questions. 1) Check whether there are any missing values in the fingerprimts subset. (1 point) Note: put your response in the comment starting with "\#" 2) Split the fingerprints (predictors) and permeability (outcome) subset into training (80%) and test set ( 20%) respectively. (1 point) Note: below R codes for splitting data into the training and test set respectively is provided for your reference. You may use different object namers) as needed. set.seed ( 0) training p=0.8. list = FALSE) predictors train =1:40" when tuning a PLS or PCR model. 5) Which model would you choose? Use your chosen model to predict the test set created from question 2). (2 points)
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