Questions tagged [quantile]

Quantiles are points taken at regular intervals from the cumulative distribution function (CDF) of a random variable.

In scientific software for statistical computing and graphics, the quantile of a numeric vector can be found by function quantile.

755 questions
0
votes
1 answer

How do I compare a numeric variable to the result of quantile?

I want to print a statement if the numeric variable falls between two quantile values or outside. I am using R studio on a Mac Under5<- quantile(Vector, probs=0.05) Above95 <- quantile(Vector, probs=c(0.95)) if (Under5
0
votes
1 answer

How would I perform quantile() of a sub-list within a list in R?

I have a biglistthat contains 0 sublists, each of which are List of 1. When I do >biglist I get this: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] LIST1 Numeric,6 Numeric,6 Numeric,6 …
Brian Lee
  • 39
  • 7
0
votes
0 answers

d3 quantile or quartile scale given the quartile values

The current quantile scale takes all the input values as the domain to map the output range. But if the data is extremely large, I want the processing to happen on the server giving me the quartile values. So I get: var quartiles=[5, 10,…
sathishvj
  • 1,394
  • 2
  • 17
  • 28
0
votes
1 answer

quantile of higher order

given a simple dataset in R, I neeed to find out the 40th quantile of it. How can this be done? dataset<-rnorm(50e3) quantile(dataset, "40th-quantile") Thanks in advance!
Impulsleistung
  • 177
  • 3
  • 13
0
votes
0 answers

Quantile regression analysis in R

I have noticed that whenever I try to plot the coefficient graphs with their confidence intervals (CI) with the normal OLS coefficients and their CI, I get an error whenever I force the regression through the origin. So if I use this code (engel is…
Jason Samuels
  • 951
  • 6
  • 22
  • 40
0
votes
0 answers

Why is R removing factors from factor variables when I run a quantile regression?

I'm currently running a quantile regression model in R using Roger Koenker's quantreg package. I have an ordered categorical variable with five levels and three unordered categorical variables (day of the week, season, and whether or not it's…
Brandon Sherman
  • 673
  • 1
  • 8
  • 25
0
votes
1 answer

Error in qnorm: argument "p" is missing, with no default

I'm trying to use R to calculate using a "perfect" normal distribution. In other words, I don't want to specify it from some sample points - I have none - I just want to feed it the mean and standard deviation and compute quantiles. It seems I…
djechlin
  • 59,258
  • 35
  • 162
  • 290
0
votes
1 answer

How to create quantiles in R and plot histogram

I have recently started working with R. I have a dataset which is composed of two columns and 100000 rows as shown below: Y TOTA 1 1 403500.000 2 1 188334.000 3 0 812387.000 4 0 163626.000 5 1 …
QGA
  • 3,114
  • 7
  • 39
  • 62
0
votes
2 answers

R: Sample Size Considerations in QQ-plots

It is common to use graphics to assess normality of a given sample. However QQ plots require large sample sizes to reliably represent the population being sampled. It is said in some texts that a sample size of at least a thousand is desirable. This…
Riad
  • 953
  • 3
  • 13
  • 23
0
votes
1 answer

SQLalchemy: quantiles for all permutations of column value combinations

We have a sql server query in which we need to generate ntiles for increasingly large numbers of variables, such that the variables are combined with each other in their various permutations. Here's an excerpt exemplifying what I mean: statement…
ouonomos
  • 700
  • 1
  • 9
  • 25
0
votes
1 answer

pth Quantile of Standard Normal Distribution - R

I'm learning statistics and R from a book called "Discovering Statistics using R"... Although it's very informative, it seems to skip over areas even though it suggests no prior knowledge of statistics or R is needed. So to the problem: How can you…
Reanimation
  • 3,151
  • 10
  • 50
  • 88
0
votes
0 answers

matlab - Time Series Analysis of Percentiles

I currently have a dataset of dates, a company identifier and a value of interest in a csv file. Both the company identifier and the value are numerical. My data is currently in a flat file format so I currently have rows like the…
user6893
  • 143
  • 1
  • 2
  • 9
0
votes
0 answers

MySQL Building median stored function

I would like to build a stored function to compute quantils within groups. I have a very nice SQL from the net to compute median: http://geekyisawesome.blogspot.ch/2012/04/finding-median-value-using-mysql-sql.html. This SQL allows to compute the…
giordano
  • 2,954
  • 7
  • 35
  • 57
0
votes
1 answer

Calculating confidence intervall for quantiles first by hand (than in R)

It would be great if someone can check whether my approach is correct or not. Question in short will be, if the error calculation is the correct way. lets assume i have the following data. data =…
0
votes
2 answers

R select data of each row on basis of the row quantiles

I have a data set with 60 rows and 3036 columns. I have already calculated the row quantiles with the function rowQuantiles from the matrixStats package. From this I got a column vector [60,1]. Now, I want to select from each row only the data which…
user2882752
  • 15
  • 1
  • 3