Displaying 1 result from an estimated 1 matches for "maf1".
Did you mean:
maf
2012 Feb 10
3
problem subsetting data frame with variable instead of constant
...f variables?
Here's a look at my data frame called 'ea.cad.pwr':
*>ea.ca.pwr[1:5,]
MAF OR POWER
1 0.02 0.01 0.9999
2 0.02 0.02 0.9998
3 0.02 0.03 0.9997
4 0.02 0.04 0.9995
5 0.02 0.05 0.9993*
Here's my subset lines which finds no rows:
*power1 = subset(ea.cad.pwr, MAF == maf1 & OR == odds)
power2 = subset(ea.cad.pwr, MAF == maf2 & OR == odds)
*
Now when maf1 = 0.2 and odds = 1.2 it finds nothing. I know for a fact that
there's a row with these values:
*> ea.cad.pwr[1430:1432,]
MAF OR POWER
1430 0.2 0.58 0.9996
1431 0.2 1.20 0.3092
1432 0.2 1.22 0...