Displaying 1 result from an estimated 1 matches for "nadirlasttim".
Did you mean:
nadirlasttime
2011 Jun 07
1
extract data features from subsets
...he nadir - but if the nadir level is present at >1 time point, I need the minimum and maximum time of nadir
* For the time period from maximum time of nadir to the last result, I need the coefficient from a lm(result~time)
The result would be a table looking like:
ID NadirLevel NadirFirstTime NadirLastTime Slope
A 1 3 5 1
B 2 2 2 2
I can manage to extract all the required elements in a very cumbersome loop, but I am sure an elegant method using apply() or the like could be devised but I cant presently understand the necessary syntax. An suggestions appreciated.
Thanks
Scott
__________...