# Calculate Cutoff value

I have a set of 18 observations. Three of the observations have a score of over 97 and are associated with a positive response, to which I assign the value of 1.

The remaining 15 observations have scores that are less than 96 and are associated with a negative response, to which I assign the value of 0.

I would like to have R calculate a statistically significant cutoff value associated with a “p value”.

My questions:

What type of data structure do I place my data into?

How do I instruct R to calculate the cutoff value?

What “library” or “package” does R use to calculate the cutoff value?

Do I choose a “p value” or does R calculate it?

Jim

Hello,

I think what you're after is foremost z scores and then looking at drawing inference. I suggest having a look here: https://www.statology.org/z-score-r/ (for basic z scores) and then a bit more involved article here on that with significant testing here: https://replicationindex.com/2019/03/31/one-tail-or-two-tails-that-is-the-question/

Thanks for your help. But, what I need is a pass/fail value (cutoff value, yes/no value) for my observations. Thanks, Jim

Welcome to the forum.

Your question is a bit unclear. Could you try to explain what you mean by:

?

1 Like

I have a set of 18 observations. Three of the observations have a score of over 97 and are associated with a positive response, to which I assign the value of 1.

The remaining 15 observations have scores that are less than 96 and are associated with a negative response, to which I assign the value of 0.

I would like to have R calculate a statistically significant cutoff value associated with a “p value”.

My questions:

What type of data structure do I place my data into?

How do I instruct R to calculate the cutoff value?

What “library” or “package” does R use to calculate the cutoff value?

Do I choose a “p value” or does R calculate it?