Displaying 2 results from an estimated 2 matches for "mitinho".
Did you mean:
miltinho
2008 Sep 10
1
isolating X on an expression
Dear R-gurus,
I know that it is not a R problem, but as need
to implement some solution for this on R, I would
like to know if someone help me on how to isolate
X on the expression below.
K=(sen A * sen B ) + ( cos A * cos B * cos ( X - Y ) )
Any help are welcome
mitinho astronauta
brazil
[[alternative HTML version deleted]]
2008 Sep 10
4
re flecting a line
Suppose x and y are numeric vectors of the same length.
plot(x,y) #scatterplot
lmObj1 <- lm(y~x) # best fit line
abline(lmObj1) # good
lmObj2 <- lm(x~y) #get best fit but with axes interchanged
abline(lmObj2) # not what I want. I want the correct line, drawn on the same
graph, but with
# response and predictor variables interchanged
One way to proceed would be to