Re: [R] test if all predictors in a glm object are factors

2008-09-04 Thread Prof Brian Ripley
On Wed, 3 Sep 2008, Marc Schwartz wrote: on 09/03/2008 04:56 PM Michael Friendly wrote: I'm trying to develop some graphic methods for glm objects, but they only apply for models where all predictors are discrete factors. How can I test for this in a Is an ordered factor a 'discrete

[R] test if all predictors in a glm object are factors

2008-09-03 Thread Michael Friendly
I'm trying to develop some graphic methods for glm objects, but they only apply for models where all predictors are discrete factors. How can I test for this in a function, given the glm model object? That is, I want something that will serve as an equivalent of is.discrete.glm() in the

Re: [R] test if all predictors in a glm object are factors

2008-09-03 Thread Marc Schwartz
on 09/03/2008 04:56 PM Michael Friendly wrote: I'm trying to develop some graphic methods for glm objects, but they only apply for models where all predictors are discrete factors. How can I test for this in a function, given the glm model object? That is, I want something that will serve