Displaying 20 results from an estimated 10000 matches similar to: "sd help"
2004 May 21
2
bars with sd
I need some help for a curious question of a friend of mine.
She usually does some experiments (3-5 repeats for each exp) and then she
calculates mean and standard deviation.
In microsoft excel she writes something like the following
sample mean sd
a 1.25 0.35
b 2.65 0.65
c 3.45 0.50
She can do a vertical barplot graph just giving mean value and specifying
the
2012 May 19
1
Contingency table and mean(sd)
Hi All,
I have a question regarding contingency tables. I would like to calculate the mean and standard deviation of a continuous variable from my own dataset based on the percentages of a contingency table I obtained from a scientific article.
dataset<- data.frame(cbind(case=rep(0:1,5), x1=c(1:10), x2=c(0:9)))
contingency_table<- matrix(c(100, 75, 65, 85, 90, 87), nrow=3, ncol=3)
In
2011 Nov 11
8
Help
Dear Contributors
I would like to perform this operation using a loop, instead of repeating
the same operation many times.
The numbers from 1 to 4 related to different groups that are in the
database and for which I have the same data.
x<-c(1,3,7)
datiP1 <- datiP[datiP$city ==1,x];
datiP2 <- datiP[datiP$city ==2,x];
datiP3 <- datiP[datiP$city ==3,x]
datiP4 <-
2019 Feb 19
3
Documentation for sd (stats) + suggestion
I cannot file suggestions on bugzilla, so writing here.
As far as I can tell, the manual help page for ``sd``
?sd
does not explicitly mention that the formula for the standard deviation is
the so-called "Bessel-corrected" formula (divide by n-1 rather than n).
I suggest it should be stated near the top.
I would also suggest (feature request!) that either
- a population standard
2005 Dec 08
2
'mean' and 'sd' calculations do not match
Dear list,
I am using R 2.1.1 on a Fedora 3 Linux, 32 bit PC.
If I compute the aggregated mean and the standard deviation I get
standard deviation values for factors where the mean was not computed.
It seems to me that this is somehow related to the NA values. But I
don't quite understand what is going wrong?
Could it be related to the data import already? Some of the imported
data got the
2010 Dec 08
1
sd() for numeric row entries
How might one calculate standard deviation, row-wise, for the numeric values in a data frame such as this one
V1 V2 V3 V4 V5
1 rs11089130 0.4565 0.4574 0.4569 0.4572
2 rs738829 0.6548 0.6519 0.6448 0.6549
3 rs915674 0.7503 0.7500 0.7517 0.7502
and place the standard deviation in a 6th column called “std_dev”?
Regards,
Jim
[[alternative HTML version deleted]]
2012 May 24
3
Exclude when sd=0
How do I trim a matrix to exclude columns that have no standard deviation?
Thanks,
Chris
[[alternative HTML version deleted]]
2012 Nov 10
3
sample mean, variance and SD
hi
could you help me to solve this issue
Question:
Using command rweibull(100,8,15), simulate n = 100 realizations from
Weibull(8; 15) distribution. Using the simulated sample, compute the sample
mean, variance and standard deviation of these observations.
I am trying like this
sim<-rweibull(100,8,15) # simulated sample
SM<-mean(sim) # simulated sample mean
var(sim) # variance
2008 Feb 18
2
Custom Plot - means, SD & 5th-95th% (Plotmeans or Boxplot)?
Any help with this problem would be greatly appreciated:
I need to produce a custom plot i haven't come across in R. Basically, I
want to show means, 1st standard deviation and 5th and 95th percentiles
visually, using something resembling a boxplot. Is it possible to completely
customize a boxplot so that it shows means as the bar (instead of, not as
well as medians), standard deviations at
2016 Sep 09
2
R-intro: function 'stderr' and 'sd'
In "An Introduction to R" Version 3.3.1, in "4.2 The function tapply() and ragged arrays", after
stderr <- function(x) sqrt(var(x)/length(x)) ,
there is a note in brackets:
Writing functions will be considered later in [Writing your own functions], and in this case was unnecessary as R also has a builtin function sd().
The part "in this case was unnecessary as R also
2012 Mar 23
2
plot a BARPLOT with sd deviation bar up and down
dear Researchers,
i am looking for a function to plot a barplot for each mean value and the
related standard deviation, and i can close my week. This is an example of
my data set.
really Thanks in advance for any help or suggestions
Gianni
My.mean <- data.frame(Mean=c(0.4108926,0.3949009,0.4520346,
0.4091665,0.4664066,0.3048296,0.4297226,0.4056383,
2013 Feb 12
3
improving/speeding up a very large, slow simulation
Dear R help;
I'll preface this by saying that the example I've provided below is pretty
long, turgid, and otherwise a deep dive into a series of functions I wrote
for a simulation study. It is, however, reproducible and self-contained.
I'm trying to do my first simulation study that's quite big, and so I'll
say that the output of this simulation as I'd like it to be is
2007 Mar 09
9
XP: VBD could not connect to backend device: USB boot
Hi:
we have following setup:
1. 2.6.16-33-based Xen 3.0.3/Xen-3.0.4 DOM-0 kernels.
2. Using LILO-mbootpack from USB we boot Xen-->DOM-0 setup
3. We mount harddisk and try to install xp.hvm
While,we are successful with FCs as DOM-U, for XP we get, VBD (768)
could not be connected.
We do have max_loop count to 64 and enough loop devices.
Note that above error is consistent on both 3.0.3
2011 Jul 09
2
Meta-analysis with zero values for mean and sd. Continuous data.
Hi,
I want to do a meta-analysis with count data for treatement/control cases.
Mi problem is that I need to use zero values (an informative zero value) for
the mean and standard deviation for one of the treatement, but R has a
problem: "Studies with zero values for sd.e or sd.c get no weight in
meta-analysis". I can agroup the case by Family (byvar=Family).
¿Can you help me? Thanks!
2011 Nov 08
1
Building package problem
Dear R-users
I am trying to recompile a CRAN package on Windows 32. Rtools for 2.14 (that is the version I am running) and miktex were sucessfully installed on my machine.
Problems:
a) hydroGOF is a CRAN package, but R CMD check does not work on it.
C:\Users\eduardo\Documents\R_tests2>R CMD check hydroGOF
* using log directory 'C:/Users/eduardo/Documents/R_tests2/hydroGOF.Rcheck'
2024 Aug 11
1
geom_smooth with sd
Dear community
Using after_stat() I was able to visualise ggplot with standard deviations
instead of a confidence interval as seen in the R help.
p1<-ggplot(data = MS1, aes(x= Jahr, y= QI_A,color=Bio, linetype=Bio)) +
geom_smooth(aes(fill=Bio,
ymax=after_stat(y+se*sqrt(length(y))), ymin=after_stat(y-se*sqrt(y))) ,
method = "lm" , formula = y ~ x +
2003 May 13
1
SD
Dear r-help,
Function sd calculates the standard deviation 'with (n-1)
denominator'.
Are there any alternatives with n denominator?
Thank you very much.
--
Best regards
Wladimir Eremeev mailto:wl at eimb.ru
2007 May 31
1
sd with n not n-1
need a version of sd [or var] to return population standard deviation
(using n rather than n-1 denominator) that will operate on a dataframe
containing missings, i.e. unequal n's. any ideas? thx, ted.
----------------------------------------
Ted (Edwin) Blew
tblew@ets.org
--------------------------------------------------
This e-mail and any files transmitted with it may contain
2008 Feb 08
1
putting mean and sd on a histogram
Hi,
I would like to put the mean and + / - the standard deviation as lines on
the x axis of a histogram. My attempts using the histogram function have
been unable to do this. My searches are unsucessful on this subject.
Any ideas are appreciated.
Thanks
stemp <- 5 6 5 5 5 5 6 5
m <-5.25
stanD <- 0.46291005
using windows xp
R 2.6
--------------------------------------------------
2009 Sep 16
1
error: could not find function "sd"
sselamat wrote:
>
> Hi,
> Everytime I try to get the standard deviation of a vector and enter
> command of sd(x), i get a reply
> Error: could not find function "sd"
> Can someone help me please?
> Thanks.
>
>
Hmmm. Please provide more information, it's hard to imagine how this could
happen.
Results of sessionInfo() ???
Here's the only way I