Displaying 2 results from an estimated 2 matches for "cyclismo".
2012 Aug 02
1
Naive Bayes in R
I'm developing a naive bayes in R. I have the following data and am trying
to predict on returned (class).
dat = data.frame(home=c(0,1,1,0,0), gender=c("M","M","F","M","F"),
returned=c(0,0,1,1,0))
str(dat)
dat$home <- as.factor(dat$home)
dat$returned <- as.factor(dat$returned)
library(e1071)
m <- naiveBayes(returned ~ ., dat)
m
2011 Oct 14
2
Analysis
i'm actually new at R, but to me its going to be big time, i want to do an
analysis for the attached data, like define variables and then analyse get
means, variances, histogram, and other important attributes including cross
tabs
Regards,
Peter
-------------- next part --------------