screeBIC {mixPHM}R Documentation

Scree plot of BIC's

Description

This function produces a scree plot on the basis of the BIC values in msBIC.

Usage

screeBIC(x, lty = 1, col = NA, pch = 19, type = "b", main = "BIC Screeplot", 
xlab = "Number of Components", ylab = "BIC", legpos = "topright", ...)

Arguments

x

Object of class mws from msBIC

lty

Line type

col

Line colors; if NA, colors are determined automatically

pch

Value for plotting points

type

Type of plot

main

Plot title

xlab

Label for x-axis

ylab

Label for y-axis

legpos

position of the legend

...

Additional plot parameters

See Also

msBIC

Examples


##Fitting all Weibull proportional hazard models for K=2,3,4 components
data(webshop)
res <- msBIC(webshop, K = c(2,3,4), method = "all", maxiter = 5)
screeBIC(res)

[Package mixPHM version 0.7-2 Index]