Description Usage Arguments Value Author(s) Examples
This function will prune the GPA-Tree model fit using the given cp value.
1 2 | ## S4 method for signature 'GPATree'
prune(object, cp = 0.001)
|
object |
An object of class GPATree. |
cp |
The cp parameter to be used for pruning. cp must be between 0 and 1. |
GPA-Tree model output.
Aastha Khatiwada
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.