Displaying 20 results from an estimated 1000 matches similar to: "finding mean and SD for a log-normal distribution"
2012 Sep 01
2
help on setting boundaries for generating random numbers
Dear All,
is there a way to set low and high limits to a simulation with rlnorm()?
as an example:
a <-rlnorm(500,0.7,1)
I get the summary of
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.1175 1.0590 2.1270 3.4870 4.0260 45.3800
I would like to set limits so that the simulated values minimum would be greater then 0.5 and maximum of less than 30. If during simulation a
2012 Oct 11
2
Help on probability distribution question
Dear All,
I have a questions I would like to ask about and wonder if you have any thoughts to make it work in R.
1. I work in the field of medicine where physiologic variables are often simulated, and they can not have negative values. Most often the assumption is made to simulate this parameters with a normal distribution but in the "log-domain" to avoid from negative values to be
2012 Oct 12
1
better example for multivariate data simulation question-please help if you can
Dear?All,
?
a few weeks ago I have posted a question on the R help listserv that?some of you have responded to with a great solution, would like to thank you for that? again.?I thought I would reach out to you with the issue I am trying to solve now. I have posted the question a few days ago, but probably it was not?clear enough, so I thought i try it again.?At times I have a multivariate example
2005 Jan 07
3
lognorm
Hi!
I 've a problem to have a lognorm distribution with
mean=1 and var (or sigma)=1.
rlnorm(1000,0,0)
rlnorm(1000,1,1)
rlnorm(1000,0,1)
.... ?
Can you help me?
2005 Mar 16
2
Basical question to asterisk
Hello!
I'm new to asterisk and because I try to configure the package for my
needs the last days without success, I'd like to ask a basical qestion.
I need asterisk to work together with the German VoIP provider sipgate
(http://www.sipgate.de). Asterisk should act as a softphone, I want to
recive and make calls only with the software under linux, no softphone
should be used. Is this
2004 May 01
2
Generating Lognormal Random variables (PR#6843)
Full_Name: Anthony Gichangi
Version: 1.90
OS: Windows XP Pro
Submission from: (NULL) (130.225.131.206)
The function rlnorm generates negative values for lognormal distribution.
x- rlnorm(1000, meanlog = 0.6931472, sdlog = 1)
Regards
Anthony
2013 Jun 18
2
find closest value in a vector based on another vector values
Dear All,
would you please provide your thoughts on the following:
let us say I have:
a <-c(1,5,8,15,32,69)
b <-c(8.5,33)
and I would like to extract from "a" the two values that are closest to the values in "b", where the length of this vectors may change but b will allways be shorter than "a". So at the end based on this example I should have the result
2008 May 04
1
Is my understanding of rlnorm correct?
rlnorm takes two 'shaping' parameters: meanlog and sdlog.
meanlog would appear from the documentation to be the log of the mean.
eg if the desired mean is 1 then meanlog=0.
So to generate random values that fit a lognormal distribution I would
do this:
rlnorm(N , meanlog = log(mean) , sdlog = log(sd))
But when I check the mean I don't get it when sdlog>0. Interestingly I
2013 May 10
1
rlnorm(n, meanlog = 0, sdlog = 1)
Hi list,
Does anyone know the code behind rlnorm(n, meanlog = 0, sdlog = 1)? I am
going to write it in c#.
thanks
Alireza
[[alternative HTML version deleted]]
2002 Apr 21
3
SHorewall and Accounting Scripts
Hi everyone!
First of all: Big thanks to Tom for this great work!!
Now on to my qestion:
I am using Shorewall among other machines on an new server where we
need some kind of accounting.
The script we would like to use for this is iam
(http://intevation.de/iam/).
The docs say:
Alternatively you can use your own iptables script and only add the
''dump'' option, which should
2010 Jun 21
2
How to predict the mean and variance of the dependent variable after regression
Hi, folks,
As seen in the following codes:
x1=rlnorm(10)
x2=rlnorm(10,mean=2)
y=rlnorm(10,mean=10)### Fake dataset
linmod=lm(log(y)~log(x1)+log(x2))
After the regression, I would like to know the mean of y. Since log(y) is
normal and y is lognormal, I need to know the mean and variance of log(y)
first. I tried mean (y) and mean(linmod), but either one is what I want.
Any tips?
Thanks in
2012 Jun 24
7
Hlink node data for 2282618 already has path=...
So, like a lot of people, I am using --link-dest to do backups. My
backup target is ext4 so with a hard link limit of 64K. I do end up
with trying to create too many links at some point though and get the
following sequence of events:
rsync: link "/.snapshots/hourly.0/linux/usr/src/openwrt-r18617/build_dir/host/mpfr-2.4.1/tests/.deps/tui_sub.Po" =>
2006 May 19
3
relocation time about 20sec? and yours?
Hi List,
i have running xen-3.0.2 and my migration time for DomU from Server A to
Server B is about 20sec. The Servers A and B are connected over 1GBit/s
Links and the storrage is connected via iSCSI. The iSCSI volumes have a
performance about 20-40MByte/s. Servers A is a 2x2GHz Xeon with 4GB Ram
and Server B is a 1.8GHz AMD with 2GB Ram.
The documentation states about some 60-300msec, so my
2009 Feb 11
3
Generating Numbers With Certain Distribution in R
Dear all,
Is there a way to generate K numbers of integer (K = 10^6).
The maximum value of the integer is 200,000 and minimum is 1.
And the occurrences of this integer follows
a lognormal distribution.
- Gundala Viswanath
Jakarta - Indonesia
2008 Feb 20
3
reshaping data frame
Dear all,
I'm having a few problems trying to reshape a data frame. I tried with
reshape{stats} and melt{reshape} but I was missing something. Any help is
very welcome. Please find details below:
#################################
# data in its original shape:
indiv <- rep(c("A","B"),c(10,10))
level.1 <- rpois(20, lambda=3)
covar.1 <- rlnorm(20, 3, 1)
level.2
2012 Aug 31
3
Help on numerical object and ifelse function
Dear All,
this is probably an easy one but I can not get a handle on it:
x <-c(1,2,3,4,5)
y <-c(6,7,8,9,10)
z <-15
w <-ifelse(z>14,x,y)
this will give me a value of 1 for w. What I would like to get is the whole string of x, so that w would become a numeric object of 5 characters exactly the same as x.
Apreciate the help,
Sincerely,
Andras
[[alternative HTML version
2012 Sep 02
3
Help on finding specific columns in matrix
Dear All,
I have a matrix with 33 columns and 5000 rows. I would like to find 2 specific columns in the set: the one that holds the highest values and the one that holds the lowest values. In this case the column's mean would be apropriate to use to try to find those specific columns because each columns mean is different and they all change together based on the same "change of rate
2005 Jun 29
2
MLE with optim
Hello,
I tried to fit a lognormal distribution by using optim. But sadly the output
seems to be incorrect.
Who can tell me where the "bug" is?
test = rlnorm(100,5,3)
logL = function(parm, x,...) -sum(log(dlnorm(x,parm,...)))
start = list(meanlog=5, sdlog=3)
optim(start,logL,x=test)$par
Carsten.
[[alternative HTML version deleted]]
2001 Nov 08
4
win2k + >2GB files problem
hi!
I have a problem with rsync (current CVS version), running on a win2k
machine (rsync compiled using Cygwin).
c:\rsync>rsync --version
rsync version 2.4.6dev protocol version 24
Copyright (C) 1996-2001 by Andrew Tridgell, Paul Mackerras and others
Capabilities: 64-bit files, socketpairs, hard links, symlinks
It can DOWNload >2gb files from my linux box (with rsync reporting
negative
2004 Oct 07
2
Dialplan to Pick up calls that are ringing onother extensions?
Well I dont want it to operate as a group. I understand that it is *8 on most PBX systems but I would like it to work as dialing *8+extension-thats-ringing to have it go over to my extension. I am having a lot of trouble finding more information from the wiki and google.
Thanks!
-James
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com