Last data update: 2014.03.03

R: Set the error rates of an oncotree manually
error.rates<-R Documentation

Set the error rates of an oncotree manually

Description

Allows to set the false positive and false negative error rate associated with an object of class oncotree to values other than those found by the optimization in oncotree.fit. The estimated edge transition probabilities are updated appropriately.

Usage

error.rates(x) <- value

Arguments

x

An object of class oncotree.

value

A numeric vector of length 2. The false positive error rate will be set to value[1], while the false negative error rate to value[2].

See Also

oncotree.fit

Examples

  data(ov.cgh)
  ov.tree <- oncotree.fit(ov.cgh)
  ov.tree
  error.rates(ov.tree) <- c(0,0)
  ov.tree

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Oncotree)
Loading required package: boot
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Oncotree/error.rates_-.Rd_%03d_medium.png", width=480, height=480)
> ### Name: error.rates<-
> ### Title: Set the error rates of an oncotree manually
> ### Aliases: error.rates<-
> ### Keywords: models
> 
> ### ** Examples
> 
>   data(ov.cgh)
>   ov.tree <- oncotree.fit(ov.cgh)
>   ov.tree
Oncogenetic tree from 7 events
Parent function:
	 8q+ <- Root 
	 3q+ <- 8q+ 
	 5q- <- Root 
	 4q- <- 5q- 
	 8p- <- 5q- 
	 1q+ <- Root 
	 Xp- <- 8p- 
Estimated error rates: epos= 0.2084556 , eneg= 0.0267696 
>   error.rates(ov.tree) <- c(0,0)
>   ov.tree
Oncogenetic tree from 7 events
Parent function:
	 8q+ <- Root 
	 3q+ <- 8q+ 
	 5q- <- Root 
	 4q- <- 5q- 
	 8p- <- 5q- 
	 1q+ <- Root 
	 Xp- <- 8p- 
Estimated error rates: epos= 0 , eneg= 0 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>