Hi:
On the off chance that your 9860 explanatory variables do not completely
take up the 'non-y'
part of your data frame, you can always write a formula string to pass to
the model
function. For example,
form <- paste('y ~ ', paste('x', 1:10, sep = '', collapse = ' + '))
> form
[1] "y ~ x1 + x2 +
Eric Fail wrote:
Hi Ruser
As so usual I'm trying to replicate some SAS code. I wold like to know
if there is a wildcard operators, as " : " in SAS, in R?
When running:
lm(y ~ x1 + x2 + x3 + x4 + x5 + x6 x9860, data=mydata)
I would like to be able to get around it by just writing somet
Hi Eric,
Try
lm(y ~ . , data = mydata)
HTH,
Jorge
On Thu, May 27, 2010 at 12:58 AM, Eric Fail <> wrote:
> Hi Ruser
>
> As so usual I'm trying to replicate some SAS code. I wold like to know if
> there is a wildcard operators, as " : " in SAS, in R?
>
> When running:
>
> lm(y ~ x1 + x2 + x3 +
Hi Ruser
As so usual I'm trying to replicate some SAS code. I wold like to know
if there is a wildcard operators, as " : " in SAS, in R?
When running:
lm(y ~ x1 + x2 + x3 + x4 + x5 + x6 x9860, data=mydata)
I would like to be able to get around it by just writing something
like this:
4 matches
Mail list logo