initial.values.fm.smn.cr: Initial values for the FMR-SMN-CR

Description Usage Arguments Examples

View source: R/functions.fm.smn.cr.R

Description

Obtained the initial values for the parameter beta_j,sigma_j, p_j and nu the SMN distribution.

Usage

1
2
3
initial.values.fm.smn.cr(cc, y, x, g=2, algorithm="k-medoids", family="T",
lower=1, upper=20, space=0.1, plotLog = TRUE, searchNU=TRUE, printNU=TRUE,
  saveFigure = FALSE)

Arguments

cc

Vector of censoring indicators. For each observation: 0 if non-censored, 1 if censored.

y

Vector of responses in case of right censoring.

x

Matrix or vector of covariates for each component

g

Numbers of components

algorithm

It indicates the algorithm: "trim-kmeans","MinMax_kmeans", "k-means" and "k-medoids"

family

"T", "Normal", "Slash" or "NormalC"

lower

lower value of the search of the nu or gamma parameter

upper

upper value of the search of the nu or gamma parameter

space

number: increment of the sequence

plotLog

TRUE or FALSE the figure of profile

searchNU

TRUE or FALSE the search the nu or gamma parameter

printNU

TRUE or FALSE the print the nu or gamma parameter

saveFigure

TRUE or FALSE save the figure of profile

Examples

1
  #See examples for the wage.rates function linked above.

CensMixReg documentation built on May 2, 2019, 9:11 a.m.