predictors.Rd
The predictors
function extracts the names of the predictors from the
given bamlss model, while the smooths
function returns the names of the
smooths in one predictor.
predictors(model) smooths(model, predictor)
model | An API-enabled bamlss model. |
---|---|
predictor | A string containing the name of one predictor in the model. |
A character vector containing either the names of the predictors or the names of the smooths.
#> AICc 24.1352 logPost -24.8638 logLik -9.2105 edf 2.0000 eps 0.9902 iteration 1 #> AICc 24.1351 logPost -24.8638 logLik -9.2104 edf 2.0000 eps 0.0026 iteration 2 #> AICc 24.1351 logPost -24.8638 logLik -9.2104 edf 2.0000 eps 0.0000 iteration 3 #> AICc 24.1351 logPost -24.8638 logLik -9.2104 edf 2.0000 eps 0.0000 iteration 3 #> elapsed time: 0.01sec #> Starting the sampler... #> #> | | 0% 1.07sec #> |* | 5% 0.97sec 0.05sec #> |** | 10% 0.93sec 0.10sec #> |*** | 15% 0.84sec 0.15sec #> |**** | 20% 0.81sec 0.20sec #> |***** | 25% 0.76sec 0.25sec #> |****** | 30% 0.71sec 0.30sec #> |******* | 35% 0.66sec 0.36sec #> |******** | 40% 0.63sec 0.42sec #> |********* | 45% 0.59sec 0.48sec #> |********** | 50% 0.53sec 0.53sec #> |*********** | 55% 0.48sec 0.58sec #> |************ | 60% 0.43sec 0.64sec #> |************* | 65% 0.37sec 0.69sec #> |************** | 70% 0.32sec 0.75sec #> |*************** | 75% 0.27sec 0.80sec #> |**************** | 80% 0.21sec 0.85sec #> |***************** | 85% 0.16sec 0.90sec #> |****************** | 90% 0.11sec 0.96sec #> |******************* | 95% 0.05sec 1.02sec #> |********************| 100% 0.00sec 1.07secb <- apify(b) predictors(b)#> [1] "mu" "sigma"smooths(b, predictor = predictors(b)[1])#> [1] "p"