gen.evidence: Generate a sequence of evidence for a continuous node in a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/gen.evidence.R

Description

The evidence for a node in an RHugin domain is generated as a linear sequence within the specified standard deviation from the marginal mean of the node. The evidence can be given as an input to absorb.gnbp

Usage

1
gen.evidence(gpfit, node, std = 2, length.out = 10, std.equal = TRUE)

Arguments

gpfit

an object of class "gpfit" obtained by using fit.gnbp

node

a character string specifying the name of a continuous node in the domain

std

a numeric value specifying the number of standard deviations of marginal distribution within which the evidence is generated. A numeric vector of length = number of nodes, must be specified when std.equal=FALSE.

length.out

a positive integer giving the desired length of the sequence.

std.equal

a logical value indicating whether same number of standard deviations should be used to generate evidence for all nodes. Default is TRUE.

Details

The evidence for a node in an RHugin domain is generated as a linear sequence within the specified standard deviation from the marginal mean of the node. The evidence can be given as an input to absorb.gnbp

Value

A matrix of evidence for each specified node

Author(s)

Janhavi Moharil<janhavim@buffalo.edu>

See Also

absorb.gnbp,fit.gnbp

Examples

1
2
3
4
5
6
7
8
9
##Fit a network
data(mouse)
## Not run: 
mouse.cgbn<-fit.gnbp(mouse[,1:5],mouse[,6:19],alpha=0.1)

##Generate a sequence of evidence for a single node
evidence<-gen.evidence(mouse.cgbn,node="Tlr12",std=2,length.out=20)

## End(Not run)

geneNetBP documentation built on May 2, 2019, 5:19 p.m.