Displaying 1 result from an estimated 1 matches for "pcos".
Did you mean:
cos
2010 Mar 31
1
Weird R behaviour?
...have observed a weird behaviour from R --- apologies if I am missing
something obvious!
df3f826f28
df3f826f28
Say you type in R:
>c.preec <- 10074
>c.gd <- 2200
>p1 <- .2
>c.neo <- p1*9451 + (1-p1)*3883
>n.preec <- 3710
>n.gd <- 2650
>n.neo <- 2120
>n.pcos <- 53000
>unit.met <- 94
>cost.met <- 94*n.pcos
>effect <- seq(0,1,.01)
>gross.save <- ((n.preec*effect*c.preec) + (n.gd*effect*c.gd) +
(n.neo*effect*c.neo))
>save.nhs <- gross.save - cost.met
>e.star <- .4
>s.star <- save.nhs[which(effect==e.star)]/10...