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?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.