sscden0 | R Documentation |
Fit conditional density model to initialize parameters.
sscden0( formula, response, type = NULL, data = list(), weights, subset, na.action = na.omit, alpha = 1.4, id.basis = NULL, nbasis = NULL, seed = NULL, ydomain = as.list(NULL), yquad = NULL, prec = 1e-06, maxiter = 30, skip.iter = FALSE )
formula |
Symbolic description of the model to be fit. |
response |
Formula listing response variables. |
type |
List specifying the type of spline for each variable. |
data |
Optional data frame containing the variables in the model. |
weights |
Optional vector of bin-counts for histogram data. |
subset |
Optional vector specifying a subset of observations to be used in the fitting process. |
na.action |
Function which indicates what should happen when the data contain NAs. |
alpha |
Parameter defining cross-validation score for smoothing parameter selection. |
id.basis |
Index of observations to be used as "knots." |
nbasis |
Number of "knots" to be used. |
seed |
Seed to be used for the random generation of "knots." |
ydomain |
Data frame specifying marginal support of conditional density. |
yquad |
Quadrature for calculating integral on Y domain. Mandatory if response variables other than factors or numerical vectors are involved. |
prec |
Precision requirement for internal iterations. |
maxiter |
Maximum number of iterations allowed for internal iterations. |
skip.iter |
Flag indicating whether to use initial values of theta and skip theta iteration. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.