I'm trying to write a dprime function where I subtract FA from hits z-scores to get a dprime value for each participant. Participants are rows and z-scores are columns. My dataset (newData) is 18x16 but I want to ignore the first 8 columns. I want to repeat the dprime calculation for each of condition and create a new 18x4 dataset (newData2) with the output.I'm trying to write a dprime function where I s