Learn R Programming

CensMixReg (version 3.1)

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

Description

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

Usage

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

Run this code
# NOT RUN {
  #See examples for the wage.rates function linked above.
# }

Run the code above in your browser using DataLab