mix_dist: use mix() to estimate underlying distributions

Description Usage Arguments Value

View source: R/granular.R

Description

use mix() to estimate underlying distributions

Usage

1
2
mix_dist(dist, ps, mu_vec, pi_vec = NULL, sigma_vec = NULL,
  peak_names = NULL, sample_name = NULL, emnum = 10, log_trans = TRUE)

Arguments

dist

A numeric vector defining the distribution

ps

A numeric vector describing the granule sizes

mu_vec

A vector defining distribution means (required)

pi_vec

A vector defining distribution proportions (optional)

sigma_vec

A vector defining distribution dispersion (optional)

peak_names

A vector defining peak names (optional)

sample_name

A character string defining the sample name (optional)

emnum

passed to mix() - A non-negative integer specifying the number of EM steps to be performed

log_trans

Logical. Should values be log-transformed?

Value

A list with the fit parameters for each distribution, and complete output from mixdist::mix()


csiro-crop-informatics/granular documentation built on June 5, 2020, 1:45 p.m.