Learn R Programming

Rediscover (version 0.3.3)

getPM: getPM function

Description

Given a binary matrix estimates the corresponding probability matrix pij.

Usage

getPM(A)

Value

A `PMatrix` object with the corresponding probability estimations. This `PMatrix` object stored the corresponding coefficients of the logistic regression computed. With this coefficients it is possible to build the complete matrix of probabilities.

Arguments

A

The binary matrix

Examples

Run this code


  #This first example is a basic example of how to perform getPM: 
  
  data("A_example")
  PMA <- getPM(A_example)
  
  #The next example, is the same as the first one but, 
  #using a matrix of class Matrix: 
  
  data("A_Matrix")
  PMA_Matrix <- getPM(A_Matrix)
  
  if (FALSE) {
  #Finally, the last example, shows a real example 
  #of how to perform this function when when using
  #data from TCGA, Colon Adenocarcinoma in this case: 
  data("TCGA_COAD")
  PM_COAD <- getPM(TCGA_COAD)
  }


Run the code above in your browser using DataLab