Learn R Programming

bnpa (version 0.3.0)

Bayesian Networks & Path Analysis

Description

This project aims to enable the method of Path Analysis to infer causalities from data. For this we propose a hybrid approach, which uses Bayesian network structure learning algorithms from data to create the input file for creation of a PA model. The process is performed in a semi-automatic way by our intermediate algorithm, allowing novice researchers to create and evaluate their own PA models from a data set. The references used for this project are: Koller, D., & Friedman, N. (2009). Probabilistic graphical models: principles and techniques. MIT press. . Nagarajan, R., Scutari, M., & Lbre, S. (2013). Bayesian networks in r. Springer, 122, 125-127. Scutari, M., & Denis, J. B. . Scutari M (2010). Bayesian networks: with examples in R. Chapman and Hall/CRC. . Rosseel, Y. (2012). lavaan: An R Package for Structural Equation Modeling. Journal of Statistical Software, 48(2), 1 - 36. .

Copy Link

Version

Install

install.packages('bnpa')

Monthly Downloads

186

Version

0.3.0

License

GPL-3

Maintainer

Elias Carvalho

Last Published

August 1st, 2019

Functions in bnpa (0.3.0)

check.algorithms

Verifies the BN learning algorithms
gera.bn.structure

Learn the Bayesian Network structure from data and build a PA model
transf.into.ordinal

Transform categorical variables into ordinal
gera.pa

Generates a PA model
check.ordered.one.var

Verify if one specific variable of a data set is an ordered factor
check.na

Verify variables with NA
dataQuantC

A quantiative data set to test functions
create.cluster

Create a Parallel Socket Cluster
check.ordered.to.pa

Verifies if there are ordered factor variables to be declared in the pa model building process
outcome.predictor.var

Builds a black list of predictor and/or outcome variable
preprocess.outliers

Extract information of outliers
create.dummies

Creates dummy variables in the data set and remove master variables
convert.confusion.matrix

Converts the position of any element of confusion matrix to VP, FP, FN, VN
check.variables.to.be.ordered

Check if the variables need to be ordered
check.outliers

Indentifies and gives an option to remove outliers
gera.pa.model

Generates PA input model
mount.wl.bl.list

Mounts a white or black list
check.dichotomic.one.var

Verify if one specific variable of a data set is dichotomic
check.levels.one.variable

Check the levels of a categorical variable
boot.strap.bn

Executes a bootstrap during the learning of a BN structure
check.type.one.var

Verify the type of one variable
dataQualiN

A qualitative data set to test functions
check.types

Verify types of variable