estimate.parameters: Estimate the parameters of a Bayesian network

Description Usage Arguments Details

View source: R/s3-generics.R

Description

Given the structure of a Bayesian network, estimate the parameters (weights) using ordinary least squares (for Gaussian data) or logistic regression (for discrete data).

Usage

1

Arguments

fit

fitted sparsebnFit or sparsebnPath object containing the Bayesian network structure to fit.

data

Data to use for fitting.

...

(optional) additional arguments to pass to lm or glm.

Details

The low-level fitting methods are fit_glm_dag (for continuous data) and fit_multinom_dag (for discrete data).


sparsebnUtils documentation built on Jan. 27, 2021, 9:05 a.m.