Description Usage Arguments Value Note Author(s) Examples
This function can be used to generate Latex-markup that models the full dependency between covariates and a target variable.
1 | bayesToLatex(conditionalFeatures, targetFeature, includeValues = FALSE)
|
conditionalFeatures |
data.frame of Bayesian features, the target feature depends on. |
targetFeature |
data.frame that holds exactly one Bayesian feature, that is supposed to be the target-feture for Bayesian inferencing. |
includeValues |
default FALSE boolean to indicate whether to include the features' values or not, i.e. "A" vs. "A = setosa". |
a string that can be used in Latex documents.
Use cat()
to print a string that can be copy-pasted.
Sebastian Hönel sebastian.honel@lnu.se
1 2 3 4 5 6 7 8 9 | feat1 <- mmb::createFeatureForBayes(
name = "Petal.Length", value = mean(iris$Petal.Length))
feat2 <- mmb::createFeatureForBayes(
name = "Petal.Width", value = mean(iris$Petal.Width))
featT <- mmb::createFeatureForBayes(
name = "Species", iris[1,]$Species, isLabel = TRUE)
cat(mmb::bayesToLatex(conditionalFeatures = rbind(feat1, feat2),
targetFeature = featT, includeValues = TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.