# NOT RUN {
# Classifying brfarmers -----------------------------------------------------
x <- brfarmersDiffNet
diffnet.toa(x)[x$toa==max(x$toa, na.rm = TRUE)] <- NA
out <- classify_adopters(x)
# This is one way
round(
with(out, ftable(toa, thr, dnn=c("Time of Adoption", "Threshold")))/
nnodes(x[!is.na(x$toa)])*100, digits=2)
# This is other
ftable(out)
# Can be coerced into a data.frame, e.g. ------------------------------------
# }
# NOT RUN {
View(classify(brfarmersDiffNet))
cbind(as.data.frame(classify(brfarmersDiffNet)), brfarmersDiffNet$toa)
# }
# NOT RUN {
# Creating a mosaic plot with the medical innovations -----------------------
x <- classify(medInnovationsDiffNet)
plot(x)
# }
Run the code above in your browser using DataLab