Learn R Programming

DBGSA (version 1.2)

centdis: Computing the distance by gravity method

Description

A function which is used to calculate the distances between case and control group by method of gravity method

Usage

centdis(C,num,Meth)

Arguments

C
An input matrix which contains the gene profiles
num
An integer indicating the number of case group
Meth
A character string indicates which method to be used to compute the distances between genes, euclidean and Manhattan are available to choose

Value

A matrix containing the distances