0

Using the quantile() function in a class here is my code so far:

p <- seq(.01,.99,.01)

sample_quantiles <- quantile(act_scores, p)

I am trying to find the quantile associated with the value "26" in the data set, as opposed to the inverse:

sample_quantiles[26]
2
  • For future questions, please make sure that you format the code correctly. You can find a guideline here. Commented Oct 14, 2021 at 15:10
  • Please provide the data for the variable act_scores. The Error you get would also be helpful. Commented Oct 14, 2021 at 15:12

1 Answer 1

1

You can use ecdf for this:

ecdf(act_scores)(26)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.