prune: Prune GPA-Tree model fit

Description Usage Arguments Value Author(s) Examples

Description

This function will prune the GPA-Tree model fit using the given cp value.

Usage

1
2
## S4 method for signature 'GPATree'
prune(object, cp = 0.001)

Arguments

object

An object of class GPATree.

cp

The cp parameter to be used for pruning. cp must be between 0 and 1.

Value

GPA-Tree model output.

Author(s)

Aastha Khatiwada

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(GPATree)

# load GPATree example data
data(GPATreeExampleData)

#fitting the GPATree model
fit <- GPATree(GPATreeExampleData$gwasPval, GPATreeExampleData$annMat)

# pruning the GPATree model fit
pruned.fit <- prune(fit, cp = 0.005)

## End(Not run)

asthakhatiwada/GPATree documentation built on March 8, 2021, 5:29 a.m.