pmix: The mixture cumulative distribution

Description Usage Arguments Value Examples

View source: R/pmix.R

Description

Computing cumulative distribution function for the well-known mixture models.

Usage

1
pmix(lifespan, model, K, param)

Arguments

lifespan

Vector of samples

model

choice of one of the mixture models; gompertz, log-logistics, log-normal, and weibull.

K

number of components

param

Vector of weight ω, shape α, and scale β parameters.

Value

A vector of the same length as lifespan data, given the cdf of the one of the mixture models computed at lifespan.

Examples

1
2
3
4
5
6
7
lifespan<-seq(0,30,0.2)
K<-2
weight<-c(0.5,0.5)
alpha<-c(0.5,1)
beta<-c(1,0.5)
param<-c(weight,alpha,beta)
pmix(lifespan, "log-logistic", K, param)

fitmix documentation built on April 19, 2021, 9:06 a.m.

Related to pmix in fitmix...