Displaying 10 results from an estimated 10 matches similar to: "Using "mean" if two values are identical"
2007 May 02
1
Get the difference of values to their own median value
Hello,
I've got a matrix (mail end) with the colnames x, y, z. In this matrix
are different measurements. x and y are risign coordinates.
With the following line I got the median value of z for all "x" AND "y" witch
are the same (not every measurment in my list hast the same number of
"x" and "y" values. Sometimes lines are missing.
>MEDIAN <-
2009 Sep 28
2
probability density function for maximum values in repeated finite samples from a normal distribution??
this is probably not really a R specific question, if so apologies for
off-topic posting:
I'm interested in the probability density function of the maximum values
from repeated samples of size N from a normal distribution:
smp <- rnorm(N, meanval, stdev)
with some mean 'meanval' and standard deviation 'stdev'.
I would like to know what is the frequency distribution of
2017 Aug 24
1
Problem in optimization of Gaussian Mixture model
Hello,
I am facing a problem with optimization in R from 2-3 weeks.
I have some Gaussian mixtures parameters and I want to find the maximum in
that
*Parameters are in the form *
mean1 mean2 mean3 sigma1 sigma2 sigma3 c1 c2 c3
506.8644 672.8448 829.902 61.02859 9.149168 74.84682 0.1241933
0.6329082 0.2428986
I have used optima and optimx to find the
2011 Oct 10
1
variable scope for deltavar function from emdbook
Dear all,
I want to use the deltavar() function from emdbook. I can use it
directly from the command terminal but within a function it behaves weird.
Working example:
----------------------
library("emdbook")
fn <- function()
{
browser()
y <- 2
print(deltavar(y*b2, meanval=c(b2=3), Sigma=1) )
}
x <- 2
print(deltavar(x*b1, meanval=c(b1=3), Sigma=1) )
y<-3
fn()
2008 Jun 17
1
interp() function output not continue
Dear List,
I'm using interp() to prepare 3d data for plotting with the contour() function.
If have x,y and z data. All are arrays. X and Y are sampled in an orderly fashion on a grid (a circular sub-area of a grid - see plot). I'm trying to use interp() to get x and y arrays and a z matrix that can be fed to contour().
This is the command:
2005 Jul 20
4
poisson fit for histogram
I haven't been an R lister for a bit, but I hope to enlist someone's
help here. I think this is a simple question, so I hope the answer
is not much trouble. Can you please respond directly to this email
address in addition to the list (if responding to the list is
warranted)?
I have a histogram and I want to see if the data fit a Poisson
distribution. How do I do this? It is
2010 Dec 16
2
moving average with gaps in time series
I have a time series with interval of 2.5 minutes, or 24 observations per
hour. I am trying to find a 1 hr moving average, looking backward, so
that moving average at n = mean(n-23 : n)
The time series has about 1.5 million rows, with occasional gaps due to
poor data quality. I only want to take a 1 hour moving average for those
periods that are complete, i.e. have 24 observations in the
2008 Aug 01
1
Confidence intervals with nls()
I have data that looks like
O.lengthO.age
176 1
179 1
182 1
...
493 5
494 5
514 5
606 5
462 6
491 6
537 6
553 6
432 7
522 7
625 8
661 8
687 10
704 10
615 12
(truncated)
with a simple VonB growth model from within nls():
plot(O.length~O.age, data=OS)
Oto = nls(O.length~Linf*(1-exp(-k*(O.age-t0))), data=OS,
start=list(Linf=1000, k=0.1, t0=0.1), trace=TRUE)
mod <- seq(0, 12)
2007 Apr 18
0
Get the: "standard deviation" and "mean value" of 3D-measurments
Hello,
I have got a numeric matrix with three colums of a few measurments. My x and
y coordinates are rising numbers. The z coordinate is the measurment. In
my matrix if have got ~6000 sorted values for one measurments multiplied
with the number of measurments. An example in the end.
My aim is to get the "mean values" and "standard deviation" for each value
between the
2011 Apr 06
5
Guestfish errors (Running in VirtualBox)
Hi All,
I am trying to run guestfish inside an Ubuntu instance running in VirtualBox. I'm running into problems, and my first question, is this setup even possible?
I compiled and installed libguestfs-1.8.4.
Running libguestfs-test-tool fails with the following output.
Would appreciate any advice,
Chris
new guestfs handle 0x8b77958
===== Test starts here =====
LIBGUESTFS_DEBUG=1
library