search for: nsmpls

Displaying 1 result from an estimated 1 matches for "nsmpls".

Did you mean: smpls
2010 Jan 11
1
Help with Order
...l=TRUE)) z=data.frame(merge(y,z,all=TRUE)) } } ordered = order(z$lab_id) results = z[ordered,] res = data.frame( lab=results[,"lab_id"],bw=results[,"ZBW"],wi=results[,"ZWI"],pf_zbw=0,pf_zwi=0,r = results[,"rnd"]) # # Establish no of samples recorded nsmpls = length(res[,c("lab")]) # Evaluate Z_scores for Between Lab Results for ( i in 1 : nsmpls) { if (res[i,"bw"] > 3 | res[i,"bw"] < -3) res[i,"pf_zbw"]=1 } # Evaluate Z_scores for Within Lab Results for ( i in 1 : nsmpls) { if (res[i,"wi"] >...