View source: R/check_model_data.R
check_model_data | R Documentation |
Restituisce un data frame con le misure di diagnostica di un modello ottenuto con il pacchetto rstanarm
.
check_model_data( fit, cook_levels = c(.5,1) )
fit |
oggetto ottenuto con la funzione |
cook_levels |
vettore numerico, per default |
Restituisce un dataframe con i dati del modello più le seguenti colonne:
.resid
: num, residui.
.fitted
: num, valori attesi.
.stdresid
: num, residui standardizzati.
.hat
: num, hat values.
.cook
: num, distanze di Cook.
.k
: num, k di Pareto.
Richiama le funzioni hat_values_stanarm
, cooks_distance_stanarm
e loo
.
Massimiliano Pastore
require(rstanarm)
data(sherifdat)
fit <- stan_glmer(y~time+condition+(1|group),data=sherifdat)
head( check_model_data(fit) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.