bethatkinson / rpart

Recursive Partitioning and Regression Trees
43 stars 23 forks source link

what is the meaning of “agree” and “adj”? #53

Open A-Pai opened 4 months ago

A-Pai commented 4 months ago

tmp_df <- data.frame( Y = as.factor(c(1, 1, 1, 1, 1, 0, 0, 0, 0, 0)), weight = 10:1, height = c(10:7, 5, 6, 4:1) )

tmp_df$weight[3] <- NA tm <- rpart(Y ~ weight + height, data = tmp_df, control = rpart.control( minsplit = 1, minbucket = 1, cp = 0, maxdepth = 1 ) ) summary(tm)

image

bethatkinson commented 4 months ago

pages 11/12 of the rpart vignette covers this topic.

https://cran.r-project.org/web/packages/rpart/vignettes/longintro.pdf


From: lg21c @.> Sent: Saturday, February 17, 2024 8:52 AM To: bethatkinson/rpart @.> Cc: Subscribed @.***> Subject: [EXTERNAL] [bethatkinson/rpart] what is the meaning of “agree” and “adj”? (Issue #53)

tmp_df <- data.frame( Y = as.factor(c(1, 1, 1, 1, 1, 0, 0, 0, 0, 0)), weight = 10:1, height = c(10:7, 5, 6, 4:1) )

tmp_df$weight[3] <- NA tm <- rpart(Y ~ weight + height, data = tmp_df, control = rpart.control( minsplit = 1, minbucket = 1, cp = 0, maxdepth = 1 ) ) summary(tm)

image.png (view on web)https://github.com/bethatkinson/rpart/assets/5112397/8f8399a8-befb-47a3-b2d1-3d13f0367607

— Reply to this email directly, view it on GitHubhttps://github.com/bethatkinson/rpart/issues/53, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACWQG5Y6KGXRHGJLEXOZE2TYUC7ZXAVCNFSM6AAAAABDNLYZXSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DAMJWGAZTSNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

A-Pai commented 4 months ago

I see,thanks image