p_giv_class: Calculate P(X|Y) function

View source: R/train.R

p_giv_classR Documentation

Calculate P(X|Y) function

Description

Calculate P(X|Y) function

Usage

p_giv_class(features, asv_table, param_table, sample_data)

Arguments

features

list of feature names for indexing rows from asv_table

asv_table

rows as features, columns as samples

param_table

output of acquire_parameters for the class of choice

sample_data

character matrix: column 1 = sample names; column 2 = class labels (e.g. "asthmatic" and "healthy")

Value

likelihood value


naomiwilson/gnominator documentation built on Feb. 27, 2023, 9:39 p.m.