BAMLSS Model Frame
Extracts the model frame of a bamlss
or bamlss.frame
object.
## S3 method for class 'bamlss' model.frame(formula, ...) ## S3 method for class 'bamlss.frame' model.frame(formula, ...) ## Internal helper function for creating ## the model frame. bamlss.model.frame(formula, data, family = gaussian_bamlss(), weights = NULL, subset = NULL, offset = NULL, na.action = na.omit, specials = NULL, contrasts.arg = NULL, drop.unused.levels = TRUE, ...)
formula |
An object of class |
data |
A |
family |
A |
weights |
Prior weights on the data. |
subset |
An optional vector specifying a subset of observations to be used in the fitting process. |
offset |
Can be used to supply model offsets for use in fitting. |
na.action |
A function which indicates what should happen when the data
contain |
specials |
Special function in formulas, see |
contrasts.arg |
An optional list. See the |
drop.unused.levels |
Should factors have unused levels dropped? |
... |
Arguments to be passed to |
The data.frame
containing the variables used for modeling
with function bamlss
.
## Not run: ## Generate some data. d <- GAMart() ## Model formula. f <- list( log(pnum) ~ s(x1) + log(x2), sigma ~ s(x3) ) ## Estimate model. b <- bamlss(f, data = d) ## Extract the model frame. head(model.frame(b)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.