Displaying 10 results from an estimated 10 matches for "q75".
Did you mean:
75
2013 Apr 03
5
Can package plyr also calculate the mode?
I am trying to replicate the SAS proc univariate in R. I got most of the
stats I needed for a by grouping in a data frame using:
all1 <- ddply(all,"ACT_NAME", summarise, mean=mean(COUNTS), sd=sd(COUNTS),
q25=quantile(COUNTS,.25),median=quantile(COUNTS,.50),
q75=quantile(COUNTS,.75),
q90=quantile(COUNTS,.90), q95=quantile(COUNTS,.95),
q99=quantile(COUNTS,.99) )
So I got the mean, median std dev, quantiles etc.
IS there any way I can add the mode to the mixt. Thanks ahead for any
suggestions.
--
View this message in context: http://r.789...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...t_depth, t_alt_count, t_alt_ratio), names_to =
"measure") %>%
dplyr::group_by(dat, measure) %>%
dplyr::summarize(minimum = min(value,na.rm=T),
q25 = quantile(value, probs = 0.25,na.rm=T),
med = median(value,na.rm=T),
q75 = quantile(value, probs = 0.75,na.rm=T),
maximum = max(value,na.rm=T),
average = mean(value,na.rm=T),
#standard_deviation = sd(value),
.groups = "drop"
)
Or, simpler, no need to group_by anymore. It can b...
2008 Jun 19
1
PrettyR (describe)
...ot;TDS", "TIC", "TKN", "TOC", "TSS",
"TVSS", "Zinc"), row.names = 54:80, class = "data.frame")
library(prettyR)
library(moments)
Q25 <- function(x, na.rm=TRUE){quantile(as.numeric(x), 0.25, na.rm = na.rm,
names = FALSE)}
Q75 <- function(x, na.rm=TRUE){quantile(as.numeric(x), 0.75, na.rm = na.rm,
names = FALSE)}
describe(x.f, num.desc=c("mean", "median", "sd", "min", "max", "skewness",
"Q25", "Q75","valid.n"))
[[alternative HT...
2008 Apr 03
1
prettyR 25% quartile, 75% quartile
I am using the describe function in prettyR. I would like to add the
25% 75% quartiles to the summary table
how do I do this
I have tried
describe(x.f, num.desc=c("mean", "median", "sd", "min", "max",
"skewness", "quantile(x.f, na.rm=T, probs=seq(0.25, 0.75))",
"valid.n"))
help
--
Let's not spend our time
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...th, t_alt_count, t_alt_ratio), names_to =
"measure") %>%
dplyr::group_by(dat, measure) %>%
dplyr::summarize(minimum = min(value,na.rm=T),
q25 = quantile(value, probs = 0.25,na.rm=T),
med = median(value,na.rm=T),
q75 = quantile(value, probs = 0.75,na.rm=T),
maximum = max(value,na.rm=T),
average = mean(value,na.rm=T),
#standard_deviation = sd(value),
.groups = "drop"
)
Or, simpler, no need to group_by anymore....
2024 Jun 12
3
my R code worked well when running the first 1000 lines of R code
...<- anno1148ft %>%
pivot_longer(c(t_depth, t_alt_count, t_alt_ratio), names_to = "measure") %>%
group_by(dat, measure) %>%
summarize(minimum = min(value,na.rm=T),
q25 = quantile(value, probs = 0.25,na.rm=T),
med = median(value,na.rm=T),
q75 = quantile(value, probs = 0.75,na.rm=T),
maximum = max(value,na.rm=T),
average = mean(value,na.rm=T),
#standard_deviation = sd(value),
.groups = "drop"
)
summary_anno1148ft <-t(summary_anno1148ft)
------------------------------------...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...<- anno1148ft %>%
pivot_longer(c(t_depth, t_alt_count, t_alt_ratio), names_to = "measure") %>%
group_by(dat, measure) %>%
summarize(minimum = min(value,na.rm=T),
q25 = quantile(value, probs = 0.25,na.rm=T),
med = median(value,na.rm=T),
q75 = quantile(value, probs = 0.75,na.rm=T),
maximum = max(value,na.rm=T),
average = mean(value,na.rm=T),
#standard_deviation = sd(value),
.groups = "drop"
)
summary_anno1148ft <-t(summary_anno1148ft)
------------------------------------...
2012 Oct 22
0
Lattice to ggplot2: Reference graphics across facets
...plot2)
library(lattice)
library(latticeExtra)
# User functions
Factor <- function(...) factor(..., levels = ...)
PAN <- function(x1, y1, x2, y2, txt, ...)
{
panel.rect(x1, y1, x2, y2)
panel.text(mean(c(x1, x2)), mean(c(y1, y2)), txt, ...)
}
q25 <- function(.x) quantile(.x, 0.25)
q75 <- function(.x) quantile(.x, 0.75)
# Create a dummy dataset
ecg <- expand.grid(
trt = Factor(c('Placebo', '100mg', '200mg', '400mg')),
subject = 1:50,
time = Factor(c('Screening', 'Pre-dose', 'Day 1', 'Day 2',...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...t_longer(c(t_depth, t_alt_count, t_alt_ratio), names_to = "measure")
> %>%
> group_by(dat, measure) %>%
> summarize(minimum = min(value,na.rm=T),
> q25 = quantile(value, probs = 0.25,na.rm=T),
> med = median(value,na.rm=T),
> q75 = quantile(value, probs = 0.75,na.rm=T),
> maximum = max(value,na.rm=T),
> average = mean(value,na.rm=T),
> #standard_deviation = sd(value),
> .groups = "drop"
> )
> summary_anno1148ft <-t(summary_anno1148ft)
>
>...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...T2__32ycDfD#f+pBL$PNUCK!Z~H)AQFK*VsB&zl=O0WYQ17h6w~31MP1Sn
zGH1|XPo+cNUtqUQi5_PJK`ZRuUBhBZFD)tT)4xaGlHQ(fJq!EXQj`{bDP<n}Qi}T&
zm!gxs`}Ha+Epo?SWU-Q>-hJ;VV&)okbsbPz+P9BKTwyuOq!Aaliq4`tQNDj^VQG=!
z8{x-h02RsTR#H at 03Q<KXPA^Y-I)KXifrpt&#l at vqai3ebb?@gkb49%+r7n|4UWPeE
zcZ&;q75}BkRV1d*Y}zTWDP`L(2+$g9ckvm-I^8<08jJdLw{*Rzrh at h??p~zJdURPs
zYQK^q(G}F&y>FkQl!QkUDcuH?^zU2Z8PKmgnsl4*90tgb6)7ke>zODPTSdIM4|J@!
zJGX9QsL(wso*w9uu1l&5brxFvb_y$F_B*?<U%y_(-4cbF6=wr&dAd>8fFi-tySUUP
zZ%L6=?T at 6H-HjGbP5eA(&VRp>zPDiA^moVK$5O1Lff><(*w?Y<oo)ijT^...