> library(party) > myFormula <- Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width > iris_ctree <- ctree(myFormula, data=trainData) > table(predict(iris_ctree), trainData$Species)   What is the process in the above code in R?   options:   Building a decision tree for the iris data with function ctree() in package party by using  myFormula to put Species as the target variable and all other variables are independent variables, and then using predict() function to check the prediction.    Building a linear regression model for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction.    Building a random forest  for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction.    Building a non-linear regression for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction.

Glencoe Algebra 1, Student Edition, 9780079039897, 0079039898, 2018
18th Edition
ISBN:9780079039897
Author:Carter
Publisher:Carter
Chapter10: Statistics
Section10.6: Summarizing Categorical Data
Problem 13CYU
icon
Related questions
Question
> library(party)
> myFormula <- Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width
> iris_ctree <- ctree(myFormula, data=trainData)
> table(predict(iris_ctree), trainData$Species)
 
What is the process in the above code in R?
 

options:

 
Building a decision tree for the iris data with function ctree() in package party by using  myFormula to put Species as the target variable and all other variables are independent variables, and then using predict() function to check the prediction. 
 
Building a linear regression model for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction. 
 

Building a random forest  for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction. 

 

Building a non-linear regression for the iris data with function ctree() in package party by using  myFormula to put Species as dependent variable and all other variables are independent variables, and then using predict() function to check the prediction. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Tree
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Glencoe Algebra 1, Student Edition, 9780079039897…
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
Holt Mcdougal Larson Pre-algebra: Student Edition…
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL