As Bert advised correctly, this is not an R programming question. There is
some misunderstanding on how training//test data work together
in predictions. Suppose your test data has only one class. Therefore, you can
get the following rate by betting on the majority class every time, again
using dat
Thank you for your comment! This tree function is from the tree package.
Although it might be a pure statistical question, it could be related to
how the tree function is used. I will explore the site that you suggested.
But if there is anyone who can figure it out off the top of their head, I'd
ve
Purely statistical questions -- as opposed to R programming queries -- are
generally off topic here.
Here is where they are on topic: https://stats.stackexchange.com/
Suggestion: when you post, do include the package name where you get tree()
from, as there might be
more than one with this functi
Dear all R experts,
I have a question about using cross-validation to assess results estimated
from a classification tree model. I annotated what each line does in the R
code chunk below. Basically, I split the data, named usedta, into 70% vs.
30%, with the training set having 70% and the test set
4 matches
Mail list logo