spm                 package:SemiPar                 R Documentation

_F_i_t _a _S_e_m_i_P_a_r_a_m_e_t_r_i_c _r_e_g_r_e_s_s_i_o_n _M_o_d_e_l

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

     'spm' is used to fit semiparametric regression models using the
     mixed model representation of penalized splines (per Ruppert, Wand
     and Carroll, 2003).

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

     spm(form,random=NULL,group=NULL,family="gaussian",
                     spar.method="REML",omit.missing=NULL)

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

    form: a formula describing the model to be fit.  Note, that an
          intercept is always included, whether  given in the formula
          or not.

  random: "random=~1" specifies inclusion of a random intercept
          according to the groups specified by the "group" argument.

   group: a vector of labels for specifying groups.

  family: for specification of the type of likelihood model assumed in
          the fitting. May be "gaussian","binomial" or "poisson"

spar.method: method for automatic smoothing parameter selection. May be
          "REML" (restricted maximum likelihood) or "ML" (maximum
          likelihood).

omit.missing: a logical value indicating whether fields with missing
          values are to be omitted.

_D_e_t_a_i_l_s:

     See the SemiPar Users' Manual for details and examples.

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

     An list object of class '"spm"' containing the fitted model. The
     components are: 

     fit: mimics fit object of lme() for family="gaussian" and
          glmmPQL() for family="binomial" or family="poisson".

    info: information about the inputs.

     aux: auxiliary information such as variability estimates.

_A_u_t_h_o_r(_s):

     M.P. Wand  wand@maths.unsw.edu.au (other contributors listed in
     SemiPar Users' Manual).

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

     Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)
      _Semiparametric Regression_ Cambridge University Press.
      <URL: http://stat.tamu.edu/~carroll/semiregbook/>

     Ganguli, B. and Wand, M.P. (2005)
      _SemiPar 1.0 Users' Manual_.
      <URL: http://www.maths.unsw.edu.au/~wand/papers.html>

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

     'gam' (in package `mgcv') 'lme' (in package `nlme') 'glmmPQL' (in
     package `MASS') 'plot.spm' 'summary.spm'

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

     library(SemiPar)
     data(fossil)
     attach(fossil)
     fit <- spm(strontium.ratio~f(age))
     plot(fit)
     summary(fit)

     data(calif.air.poll)
     attach(calif.air.poll)
     fit <- spm(ozone.level ~ f(daggett.pressure.gradient)+
                              f(inversion.base.height) +
                              f(inversion.base.temp))
     summary(fit)
     par(mfrow=c(2,2))
     plot(fit)

     # The SemiPar User Manual contains several other examples
     # and details of plotting parameters.
     #
     # The current version of the manual is posted on the web-site:
     #
     #     www.maths.unsw.edu.au/~wand/papers.html 

