Displaying 1 result from an estimated 1 matches for "eff_p1".
Did you mean:
eff1
2012 Mar 17
1
Error in conditional execution "missing value where TRUE/FALSE needed"
Hello R friends,
I've got error message as follows;
>
> n<-0
> roc<-array(0,c(ti-1,1))
> avgroc<-0
>
> for(i in 1:ti-1){
+ if(orientation=="in"){
+ if(eff_p1[i,1,i]==1 && eff_p1[i,1,ti-1]<1 && ed[i,1]>d[i,1]){
+ roc[i,1]<-(1/eff_p1[i,1,ti-1])^(1/(ed[i,1]-d[i,1]))
+ n<-n+1
+ }
+ }
+ if(orientation=="out"){
+ if(eff_p1[i,1,i]==1 && eff_p1[i,1,ti-1]>1 && ed[i,1]>d[i,1]){
+ roc[i...