linear and non linear regression in 3D !

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

linear and non linear regression in 3D !

Param Priya Singh
Hi All,

I have to draw a best fit line in a helix that will tell the axis of the
helix and a
curve that will tell the curvature of the helix. I suppose I have to do
linear and
non linear regression in 3D space for this ?

I have coordinates in following structure

'data.frame':   24 obs. of  3 variables:
 $ x: num  17.5 18.3 21.0 23.1 23.2 ...
 $ y: num  40.0 43.5 43.8 41.0 43.0 ...
 $ z: num  37.3 36.0 38.7 37.1 33.9 ...

 
I could draw the helix but could not do regression. Please help !
Thanks in anticipation.

-Param

DISCLAIMER\ ==========\ This e-mail may contain privileg...{{dropped:4}}

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.