find_origin: Core functions to asses overall performance of LDA, NBC and...

Description Usage Arguments Details Functions Examples

View source: R/find_origin.R

Description

Core functions to asses overall performance of LDA, NBC and MLP.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
find_origin(
  method = c("lda", "nb", "ml"),
  df_dat,
  ndistr = 20,
  nsample = 10,
  noise = 0,
  col_ids = 3:19,
  toprob = TRUE
)

scr_lda(df_dat, ndistr = 20, nsample = 10, noise = 0, col_ids = 3:19)

scr_nb(df_dat, ndistr = 20, nsample = 5, noise = 0, col_ids = 3:19)

Arguments

method

statistical approach, either "lda", "nb" or "ml".

df_dat

bio-tracer data sets. Note that by default, it loads df_all() (see get_data_ready()).

ndistr

number of sample used to build baseline bio-tracer distributions.

nsample

number of samples.

noise

noise to be added.

col_ids

ids (name or integer) of columns to be used (select bio-tracers).

toprob

should the output be a probability.

Details

Functions

Examples

1
2
df_dat <- get_data_ready()
find_origin("nb", col_ids = 3:4, df_dat = df_dat)

McCannLab/spatial_fingerprints documentation built on March 13, 2021, 12:02 a.m.