Re: [R] Plotting power function to practice data

2009-12-30 Thread Dror D Lev
Hi, I tried to be comprehensive but Jim's comment is indeed in place. I have data of a practice experiment where people practice a certain motor task and time-to-completion was recorded. Appropriately, the time measure declines as practice goes on. And, again appropriately, the relation seems to

Re: [R] Plotting power function to practice data

2009-12-30 Thread Peter Ehlers
Sounds like you might want to use nls() to fit the data and then use either curve() or predict() to do the plotting. -Peter Ehlers Dror D Lev wrote: Hi, I tried to be comprehensive but Jim's comment is indeed in place. I have data of a practice experiment where people practice a certain

Re: [R] Plotting power function to practice data

2009-12-30 Thread Dror D Lev
Thank you Peter. nls() predict() seems to do the job. dror - On Wed, Dec 30, 2009 at 8:10 PM, Peter Ehlers ehl...@ucalgary.ca wrote: Sounds like you might want to use nls() to fit the data and then use either curve() or predict() to do the plotting. -Peter Ehlers

[R] Plotting power function to practice data

2009-12-29 Thread Dror D Lev
Hello, I have practice data of motor action in the format: S | Cond. | Time +-+ 01 | c | 1.23 01 | nc| 0.89 02 | c | 2.15 02 | nc| 1.80 . I want to look at the learning curves graphically. I will appreciate pointers to relevant functions /