Questions tagged [cumulative-frequency]
90 questions
1
vote
2 answers
Algorithm to generate all possible populations for a 5-Likert Scale in R (cumulative frequency per level by 0.1)
I would like to generate all possible populations in a 5-likert scale which values are the cumulative frequency by 0.1 in each level), e.g.:
[1] [2] [3] [4] [5]
1 0 0 0 0
0 1 0 0 0
...
0 0 0 0 1
0.9 …
1
vote
2 answers
cumulative frequency given certain conditions in R
I am new at R and I do not really know how to count cumulative number of occurrences of a row if it is the same ID but different date.Also, if the first date appears more than once, it should not count in the first attempt.Look at the rows 2 and 3,…

Magggggg
- 67
- 7
1
vote
1 answer
Fill with zeros in a frequency of dates group by month and year in big query
I have a table with hiredate (Date) ,First Name (String) and Sur Name (string) like this:
hireDate First Name Surname
13-oct-14 Cintia Roxana Padilla Julca
28-oct-14 Conor McAteer
28-oct-14 Paolo Mesia…

Renato Galvez
- 83
- 1
- 6
1
vote
0 answers
R nonlinear regression of cumulative X and Y data
I'm trying to figure how to make a nonlinear regression of some cumulative data of X and Y values. The dataset is based on cumulative items and their respective cumulated demand. I have a plot that looks like this
based on the following…

LRO
- 79
- 6
1
vote
1 answer
SQL: Fast Cumulative Frequency Query (postgres)
I'm looking to get Cumulative Frequency Data out of our database. I've created a simple temp table with all unique status update counts that we've seen, and the number of users that have that amount of status updates.
Table…

Peck
- 822
- 1
- 9
- 26
1
vote
0 answers
Cumulative Frequency Tables and Chart Output
I'm working with some rather large time-series data sets related to futures prices and am in the process of converting some calculations which I previously did in Excel to R. This conversion has been relatively straightforward thus far but I m…

Kuba_R
- 11
- 2
1
vote
1 answer
How to create a cumulative graph in R
Is there a cumulative graph package in R? Or how might I create a cumulative graph in R?
For example, given values of 2, 4, 2, 2, they values should be plotted as 2, 6, 8, 10 d3 example here. Then forming a stair step pattern as with other…

d-cubed
- 1,034
- 5
- 30
- 58
1
vote
2 answers
Plotting cumulative distributions with y-axis scaled to normal distribution in R
This is the first time I have a R question that I couldn't find on Stack Overflow already - forgive me if the reason why I didn't find anything is a specific term for the type of thing I'm looking for that I'm not aware of (is there?).
I'd like to…

ursusminimus
- 148
- 1
- 10
1
vote
4 answers
How do I find the frequency of a given number into a range into an array?
The problem is:
You are given an array of size N. Also given q=number of queries; in queries you will be given l=lower range, u=upper range and num=the number of which you will have to count frequency into l~u.
I've implemented my code in C++ as…

user283207
- 11
- 1
- 4
1
vote
1 answer
expand frequency table in r
Hi everyone I am struggling with something that I think should be easy.
I have a dataset that looks as follows
Var1 Var2 Var3 Var4 Count
a b c d 10
z a c f 3
I just need a function that replicates the rows based on the…

blast00
- 559
- 2
- 8
- 18
1
vote
1 answer
Matplotlib: Avoid congestion in X axis
I'm using this code to plot a cumulative frequency plot:
lot = ocum.plot(x='index', y='cdf', yticks=np.arange(0.0, 1.05, 0.1))
plot.set_xlabel("Data usage")`
plot.set_ylabel("CDF")
fig = plot.get_figure()
fig.savefig("overall.png")
How it…

matnewguy
- 13
- 5
1
vote
1 answer
cumulative distribution in dictionary
Im trying to calculate a cumulative distribution into a dictionary. The distribution should take letters from a given text and find the probability over the times they appear in the text, and from this it should calculate the cumulative…

py.codan
- 89
- 1
- 11
1
vote
1 answer
plot multiple cumulative percentage graph by groups
I have data looks like:
zip ID count
230 B 12
230 A 10
230 C 9
230 D 5
270 C 10
270 A 9
270 B 8
290 C 9
290 A 8
290 B 6
zip and ID are factor and count is numeric.…

kuki
- 303
- 2
- 6
- 15
0
votes
1 answer
how to plot cumulative distribution plot in R
I have a data and I want to plot cumulative distribution of this.
My data is:
dput(gene_snp_distance[1:20, c(1:3)])
structure(list(distance = c(1000, 2000, 3000, 4000, 5000, 6000,
7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000,…

rheabedi1
- 65
- 7
0
votes
0 answers
Creating cumulative number of unique entries (characters)
I'm looking to create a cumulative curve of species over time (not species accumulation in vegan) but to create a curve that will show the total number of unique species added over time.
An example of my data frame looks like this:
Year Phylum …

Aly Putnam
- 1
- 1