sample_coefficients: Generate a random sample of SELEX multinomial regression...

Description Usage Arguments Value See Also

View source: R/hypothesis_testing.R

Description

Randomizes the input counts and generates null coefficients

Usage

1
2
sample_coefficients(counts, weights = default_weights, n = 1,
  cores = detectCores(), timeout = 1)

Arguments

counts

A matrix or data frame with alleles for column names

weights

A numeric vector of regression weights for the 5 cycles

n

An integer giving number of coefficient samples to generate

cores

An integer giving the number of cpu cores to use

timeout

Numeric. The time limit for fitting a model during null sampling, in seconds. (workaround for divergent edge cases)

Value

A matrix of coefficients as drawn from the null distribution

See Also

selex_standard_errors


anthony-aylward/selex documentation built on May 21, 2019, 1:42 a.m.