Learn R Programming

HydeNet (version 0.10.11)

print.HydeNetwork: Print a HydeNetwork

Description

Prints a HydeNetwork object with a brief summary of each node.

Usage

# S3 method for HydeNetwork
print(x, ...)

Arguments

x

a HydeNetwork object

...

additional arguments to be passed to print methods. Currently none in use.

Details

The summary of each node follows the format node name | parents node type (parameter) estimated from data (or not) formula

Examples

Run this code
# NOT RUN {
data(PE, package="HydeNet")
Net <- HydeNetwork(~ wells + 
                     pe | wells + 
                     d.dimer | pregnant*pe + 
                     angio | pe + 
                     treat | d.dimer*angio + 
                     death | pe*treat) 
print(Net)  
print(Net, d.dimer) 
                    
Net <- setNode(Net, d.dimer, 
                  nodeType='dnorm', mean=fromData(), sd=fromData(), 
                  nodeFormula = d.dimer ~ pregnant + pe,
                  nodeFitter='lm')
print(Net, d.dimer)
    
# }

Run the code above in your browser using DataLab