BIC                  package:stats4                  R Documentation

_B_a_y_e_s_i_a_n _I_n_f_o_r_m_a_t_i_o_n _C_r_i_t_e_r_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     This generic function calculates the Bayesian information
     criterion, also known as Schwarz's Bayesian criterion (SBC), for
     one or several fitted model objects for which a log-likelihood
     value can be obtained, according to the formula -2*log-likelihood
     + npar*log(nobs), where npar  represents the number of parameters
     and nobs the number of observations in the fitted model.

_U_s_a_g_e:

     BIC(object, ...)

_A_r_g_u_m_e_n_t_s:

  object: An object of a suitable class for the BIC to be calculated -
          usually a '"logLik"' object or an object for which a 'logLik'
          method exists. 

     ...: Some methods for this generic function may take additional,
          optional arguments.  At present none do.

_V_a_l_u_e:

     Returns a numeric value with the corresponding BIC.

_R_e_f_e_r_e_n_c_e_s:

     Schwarz, G. (1978) "Estimating the Dimension of a Model", Annals
     of Statistics, 6, 461-464.

_S_e_e _A_l_s_o:

     'logLik-methods', 'AIC-methods'

_E_x_a_m_p_l_e_s:

     data(swiss)
     lm1 <- lm(Fertility ~ . , data = swiss)
     AIC(lm1)
     BIC(lm1)

