Greetings!
I was wondering how to plot multiple equation on the same plot with the
data?
So if I have three equations:
1.y= 2.31X + -2.2
2.y= 2.27X^2 + 5.63X + 0.52
3.y= -1.53X^3 + 1.92X^2 + -4.72X + 4.57
and a datafram or a 2D matrix. I would also like the equations in different
colors,
I have a simple X, Y data frame that I am trying to run regression analysis
on. The linear regression looks great, but when I use lm(formula = y ~
poly(x, degree = 5)) I get the same coeffecients. So for example if I use
degree =3 my formula would look like y = 4.2 x^3 + 3.2x^2 + 2.1x + 1.0 and
I know there is a very simple answer to this question, but it eludes me. I
need to insert a vector into a matrix. So if I have a 2 column matrix with
5 rows, I need to insert in an additional vector so there is now 6 rows
without overwriting any of the data in the matrix already.
thanks,
Ben.
-
Thanks for your help! If you wouldn't mind, how do I access the individual
components inside coefficients matrix?
thanks,
Ben.
Paul Smith wrote:
>
> On Tue, Jul 22, 2008 at 5:44 AM, ascentnet <[EMAIL PROTECTED]> wrote:
>> I am trying to access the R2, intercept, and s
I am trying to access the R2, intercept, and slope out of the summary from an
lm so that I can insert it into a database using RODBC. How can I access
these individually?
thanks in advance,
Ben.
--
View this message in context:
http://www.nabble.com/Accessing-individual-variables-from-summary-
5 matches
Mail list logo