# NOT RUN {
#Splitting Howells dataset into training and test datasets
smp_size <- floor(0.5 * nrow(Howells))
set.seed(123)
train_ind <- sample(seq_len(nrow(Howells)), size = smp_size)
train <- Howells[train_ind, ]
test <- Howells[-train_ind, ]
library(TestDimorph)
AccuModel(
Sex ~ GOL + NOL + BNL,
x = train,
y = test,
byPop = FALSE,
method = "lda",
plot = FALSE
)
# }
Run the code above in your browser using DataLab