Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. a=c(100,105,126,130,150,100,90,76,51,40)
  2. t=c(0,5,10,20,30)
  3. t=rep(t,2)
  4. ID=c(1,1,1,1,1,2,2,2,2,2)
  5. data=data.frame(ID,t,a)
  6.  
  7. 1)for all ID at t=0 "a" value is baseline
  8. 2) Computation
  9. e.g At Given t=10 (Have to provide) take corresponding a value
  10. %Change(answer) = (taken a value - baseline/baseline)
  11. 3) Compare the answer in the following define CATEGORIES..
  12. #category
  13. 1-If answer>0.25
  14. 2-If -0.30<answer<0.25
  15. 3-If -1.0<answer< -0.30
  16. 4-If answer== -1.0
  17. 4)Return the value of category
  18.  
  19. ID My_Answer
  20. 1 1
  21. 2 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement