pappewaio / r-stats-c-streamer

0 stars 0 forks source link

make the whole transformation from odds ratio(OR) and p-value to Z-score in c #3

Closed pappewaio closed 3 years ago

pappewaio commented 4 years ago

It would be nice to make the whole transformation from odds ratio(OR) and p-value to Z-score in c. Right now only the qnorm part is being done on a pvalue, which has been divided by two in a previous step. Here is the complete formula to do this in one step from OR and pval:

s = sgn(ln(OR))*abs(qnorm(pval/2));

To be able to do this we need to split the input based on columns. Perhaps using col1 for OR and col2 for pval, or alternatively let the user specify col-number for OR and pval.

pappewaio commented 3 years ago

All of this has been solved, see readme for a guide