Yep, that code is verbatim what I typed in, using version 2.14 ... seems
weird.
--
View this message in context:
http://r.789695.n4.nabble.com/Specify-model-with-polynomial-interaction-terms-up-to-degree-n-tp4635130p4636031.html
Sent from the R help mailing list archive at Nabble.com.
_
Hi Rui,
Thanks for responding. I did not write "raw=raw", and I'm not sure why R
would return such a misleading error message. Indeed, the same error message
comes up when I run the 2nd part of your code:
> m <- matrix(1:6, ncol=2)
> p6 <- poly(m, degree=6, raw=TRUE)
Error in poly(dots[[1L]],
I think you have taken my toy example seriously. Perhaps I wasn't clear, but
I am in fact not working with a dataset of 3 observations of the numbers 1
through 6 and trying to estimate anything; that was an example to illustrate
what I am asking for, namely, turning two variables like this
X1 X2
I am not sure that method works. It appears to be doing something close, but
returns too many slope coefficients, since I think it is returning
interaction terms of degree smaller and greater than what was passed to it.
Here is a small example of degree 2:
> X = data.frame(cbind(c(1,2,3), c(4,5,
Hi Bert, thank you for pointing out that this method does not work. Do you
happen to have any ideas as to how it could be done? Many thanks.
--
View this message in context:
http://r.789695.n4.nabble.com/Specify-model-with-polynomial-interaction-terms-up-to-degree-n-tp4635130p4635197.html
Sent fr
I would like to specify a model with all polynomial interaction terms between
two variables, say, up to degree 6. For example, terms like a^6 + (a^5 *
b^1) + (a^4 * b^2) + ... and so on. The documentation states
The ^ operator indicates crossing to the specified degree.
so I would expect a mod
My criticism is aimed at the previous reply, which gave an arcane and not
helpful suggestion (granted, it may only seem that way to me because of my
own incompetence, but I don't know that the knowledge needed to understand
"binary package" and "install from the sources" is what you want to
requi
I don't know what a "binary package" or "install from the sources" means. At
any rate I think I have found a simpler solution to my problem.
I read the following in the rggobi package readme file:
Packages
Cubist, OSACC, RSvgDevice, RSVGTipsDevice, SNPassoc, SNPRelate, eco,
gcmre
I am having problems installing package rggobi. I have spent days reading
other people's questions about this topic but could not get any useful info
out of previous answers. I am running 32-bit Windows 7 and have successfully
installed GGobi version 2.1.8.
My error looks like this:
> install.p
9 matches
Mail list logo