anova.trls              package:spatial              R Documentation

_A_n_o_v_a _t_a_b_l_e_s _f_o_r _f_i_t_t_e_d _t_r_e_n_d _s_u_r_f_a_c_e _o_b_j_e_c_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     Compute analysis of variance tables for one or more fitted trend
     surface model objects; where 'anova.trls' is called with multiple
     objects, it passes on the arguments to 'anovalist.trls'.

_U_s_a_g_e:

     ## S3 method for class 'trls':
     anova(object, ...)
     anovalist.trls(object, ...)

_A_r_g_u_m_e_n_t_s:

  object: A fitted trend surface model object from 'surf.ls' 

     ...: Further objects of the same kind 

_V_a_l_u_e:

     'anova.trls' and 'anovalist.trls' return objects corresponding to
     their printed tabular output.

_R_e_f_e_r_e_n_c_e_s:

     Venables, W. N. and Ripley, B. D. (2002) _Modern Applied
     Statistics with S._ Fourth edition.  Springer.

_S_e_e _A_l_s_o:

     'surf.ls'

_E_x_a_m_p_l_e_s:

     library(stats)
     data(topo, package="MASS")
     topo0 <- surf.ls(0, topo)
     topo1 <- surf.ls(1, topo)
     topo2 <- surf.ls(2, topo)
     topo3 <- surf.ls(3, topo)
     topo4 <- surf.ls(4, topo)
     anova(topo0, topo1, topo2, topo3, topo4)
     summary(topo4)

