Hello all,
I am trying to complete an assignment for one of my courses and the goal of this assignment is to implement the library(caret) into SAS Studio and insert the following code:
intrain- createDataPartition(YOURDATA$Churn,p=0.7,list=FALSE)
set.seed(2017)
training- YOURDATA[intrain,]
testing- YOURDATA[-intrain,]
However, when I copy and paste this code, I get the message "Error: object 'entrain' not found" and "Error: object 'training' not found". The same error continues for the assignments of training and testing. Any help would be appreciated at this point. Thank you!
@Aerianna9 wrote:
Hello all,
I am trying to complete an assignment for one of my courses and the goal of this assignment is to implement the library(caret) into SAS Studio and insert the following code:
intrain- createDataPartition(YOURDATA$Churn,p=0.7,list=FALSE)
set.seed(2017)
training- YOURDATA[intrain,]
testing- YOURDATA[-intrain,]
However, when I copy and paste this code, I get the message "Error: object 'entrain' not found" and "Error: object 'training' not found". The same error continues for the assignments of training and testing. Any help would be appreciated at this point. Thank you!
That does not look like Base SAS code (which you can run in SAS Studio).
Could it be that this is the internal code of a Miner project?
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.