initial.values.fm.smn.cr {CensMixReg} | R Documentation |
Obtained the initial values for the parameter beta_j,sigma_j, p_j and nu the SMN distribution.
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)
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 |
#See examples for the wage.rates function linked above.