The probability density function of a mixture of B-splines for a specified observation vector, a specified state and a specified model's parameters
dnonpar(x, j, model, control = list(K =5))
Arguments
x: an observation vector or matrix
j: a specified state between 1 to nstate
model: a hhsmmspec model
control: the parameters to control the density function. The simillar name is chosen with that of nonpar_mstep, to be used in ... argument of the hhsmmfit function. Here, it contains only the parameter K which is the degrees of freedom for the B-spline, default is K=5