Displaying 1 result from an estimated 1 matches for "num_comp".
2011 Dec 20
5
Help with code
...l_FDR
22                                     Ctrl_FDR
23                                         Ctrl
24                                         Ctrl
25                                          T1D
i am converting it to define the groups more uniformly using this code:
for( i in 1:dim(c1)[1])
{
  num_comp<-0
  for (j in 1:dim(c1)[2])
     if (c1[i,j]==2) num_comp=num_comp+1      #"Y"=2
  for (j in 1:dim(c1)[2])
    if(num_comp>0)
    {
	  if (data$t1d_ptype[i] == "T1D" && c1[i ,j] == 2) c2[i,j]<-"T1D_w"
        if (data$t1d_ptype[i] == "T1D" &...