[R] how to delete a parameter from list after running negative binomial error
    Gavin Simpson 
    gavin.simpson at ucl.ac.uk
       
    Tue Feb 23 09:26:56 CET 2010
    
    
  
On Sun, 2010-02-14 at 21:39 +0000, Michelle Waterman wrote:
<snip />
> 
> I was thinking doing something like this:
> 
> model2.glm.nb2 <-update(model1.glm.nb, ~ . -rain, -temp, data=climate.dat)
> summary(model2.glm.nb2)
Leave out the "," between your terms:
model2.glm.nb2 <- update(model1.glm.nb, ~ . - rain - temp, data = climate.dat)
HTH
G
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
    
    
More information about the R-help
mailing list