Initial values of censored observations for the NMixMCMC function
Initial values of censored observations for the NMixMCMC function
This is a help function for NMixMCMC function. If inity is not given, it calculates reasonable initial values for censored observations. If inity argument is given then it is checked for consistency and formatted on output.
THIS FUNCTION IS NOT TO BE CALLED BY ORDINARY USERS.
sd.init: a vector of length p with initial values for overall standard deviations in each margin
are.Censored: see output from NMixMCMCdata
are.Right: see output from NMixMCMCdata
are.Exact: see output from NMixMCMCdata
are.Left: see output from NMixMCMCdata
are.Interval: see output from NMixMCMCdata
p: dimension of the data
n: number of observations
inity: a vector (if p=1) or a nxp matrix (if p>=1) of initial values of censored observations to be checked for consistency. If not given then reasonable initials are generated.
random: logical value. If TRUE then some randomness is used when generating initial values.
Returns
A nxp matrix with reasonable initial values for censored observations.