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.
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:
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.