Similarity: Compute Similarity based on nodes

Description Usage Arguments Value

View source: R/similarity.R

Description

Compute node similarity between two drug lists. vectors containing a sequence of drug concepts

Usage

1
Similarity(model, cui1, cui2, weight = NULL, PD = F, View = F)

Arguments

model

A model object like returned by loadDefaultModel.

cui1, cui2

Vectors containing a sequence of drug concepts

weight

A data.frame of of all notes' weights

PD

A logical scalar. If PD is true, weight take power of 2.

View

A logical scalar. If View is true, the drug lists will be visualized.

Value

a network similarity.


Su-informatics-lab/DIStudio documentation built on May 5, 2020, 10:33 p.m.