Skip to content
Prev 12623 / 398502 Next

[S] Labels wrong with lrm

On Sat, 28 Jul 2001 fharrell at virginia.edu wrote:

            
Well,

1) all.vars comes from S, and works the same under R.

2) I don't think it is a limitation.  all.vars is described as

Description:

     Return a character vector containing all the names which occur in
     an expression or call.

and kx is such a name.  Indeed, there is no way to know from just the
formula if it is length n-vector or a scalar.   I don't know what pol()
is, but guess it is from your library, in which case the interpretation
may well depend on where (if anywhere) that library is in the search path.

If you want special-purpose names in formulae (like strata) you need to
extend the formula-handling code.  Neither S4 nor R make that easy.

Brian