Learn R Programming

Canopy (version 1.3.0)

canopy.output: To generate a posterior tree

Description

To generate a posterior tree from the sub-tree space of trees with the same configurations.

Usage

canopy.output(post, config.i, C)

Arguments

post

list returned by canopy.post

config.i

configuration of sub-tree space to be output

C

CNA and CNA-region overlapping matrix, only needed if overlapping CNAs are used as input

Value

posterior tree from the sub-tree space of trees with the same configurations.

Examples

Run this code
# NOT RUN {
data(MDA231_sampchain)
data(MDA231)
sampchain = MDA231_sampchain
projectname = 'MD231'
K = 3:6
numchain = 20
burnin = 150
thin = 5
optK = 4
C = MDA231$C
post = canopy.post(sampchain = sampchain, projectname = projectname, K = K,
                   numchain = numchain, burnin = burnin, thin = thin, 
                   optK = optK, C = C)
config.i = 3
output.tree = canopy.output(post = post, config.i = config.i, C = C)
# }

Run the code above in your browser using DataLab