Displaying 20 results from an estimated 37 matches for "rcauchi".
Did you mean:
rcauchy
2010 Nov 30
1
rcauchy density distribution
Hello, I'm taking samples from certain distributions and drawing a density
distribution over the histogram of the samples
It works fine for the chi-square and for the normal, but not for the cauchy. Any
idea what I'm doing wrong? Thanks
x <- rchisq(10000, df = 4)
hist(x, freq = FALSE, breaks=100)
curve(dchisq(x, df = 4), col = 2, add = TRUE)
x <- rnorm(10000)
hist(x, freq =
2009 Mar 12
3
set size of a plot
Hi,
I have the following R-code:
pdf(file="test.pdf")
hist(rcauchy(100))
dev.off()
How can I set the size of the histogram in my pdf?
I tried to do with par(...) but I didn't find the right parameter yet.
Thanks, Max
--
View this message in context: http://www.nabble.com/set-size-of-a-plot-tp22477083p22477083.html
Sent from the R help mailing list archive at Nabble.com.
2010 Mar 12
2
Question regarding to maxNR
Hi R-users,
Recently, I use maxNR function to find maximizer. I have error appears as follows
Error in maxNRCompute(fn = fn, grad = grad, hess = hess, start = start, :
NA in the initial gradient
My code is
mu=2
s=1
n=300
library(maxLik)
set.seed(1004)
x<-rcauchy(n,mu,s)
loglik<-function(mu)
{
log(prod(dcauchy(x,mu,s)))
}
maxNR(loglik,start=median(x))$estimate
Does anyone know how
2007 Nov 21
1
normalised Voigt random numbers
Dear list,
I would like to generate random numbers from a Voigt distribution,
hopefully in a way as simple as getting random numbers from a normal
distribution with 'rnorm'. Is there any package to do this? Speed is an
issue in this application. Or, as the Voigt distribution is a
convolution of a Gaussian and a Lorentzian, can I simply combine random
numbers from rnorm and rcauchy in some
2003 Jun 01
1
Simulating a variable following an arbitrary distribution
Hi, I'd like to know if there's anything in R that could help me do
that. Let's suppose I have a density function of a random variable, for example
f(x) = (x^3)/4 0 < x < 2 and I would like to simulate it. For the common
distributions (exponencial, gamma, cauchy) there are the r-functions (rgamma,
rexp, runif, rcauchy, and so on).. But when the variable I want to simulate is
not
2007 May 20
2
section needed in FAQ - Using R (PR#9698)
Full_Name: Ray Kiddy
Version: R 2.5.0 GUI 1.19 (4308)
OS: Mac OS X 10.4.9
Submission from: (NULL) (71.139.33.60)
There is no section in the FAQ equivalent to "Using R". The "R Basics" is too
basic. I would say it addresses "meta-R" questions, such as installing.
I had a FAQ that I would think would be a basic "Using R" question, namely: "How
does
2011 Aug 17
9
too many var in lm
Hello,
It might be an easy question but if you have many variables to fit in the lm function, how do you take all without specifying var1+var2+...+var2100 in the terms parameter in response ~ terms?
Cheers,
Carol
2009 Mar 17
3
R does not compile any more on FreeBSD 8.0-CURRENT
On a recent FreeBSD 8.0-CURRENT (i386) building R (any version) breaks
with the following messages:
----------------------------------------------------------------------
[...snip...]
gcc -std=gnu99 -I. -I../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c wilcox.c -o wilcox.o
gcc -std=gnu99 -I. -I../../src/include -I../../src/include
-I/usr/local/include
1999 Sep 17
1
Tukey's biweight
I want to estimate the center of a distribution with lots of outliers in one
tail, and thought I would use a function such as S-plus's location.m() with
psi.fun=bisquare (as per MASS 3 p. 131). However, R seems not have such a
function, so my questions are:
1) Is there an R equivalent to location.m()?
2) Would huber() give me results that are similar (i.e., close enough)?
Thanks.
2007 Aug 29
3
OT: distribution of a pathological random variate
Folks,
I wonder if anything could be said about the distribution of a random variate x, where
x = N(0,1)/N(0,1)
Obviously x is pathological because it could be 0/0. If we exclude this point, so the set is {x/(0/0)}, does x have a well defined distribution? or does it exist a distribution that approximates x.
(The case could be generalized of course to N(mu1, sigma1)/N(mu2, sigma2) and one
1997 Dec 13
1
R-beta: Compile error; R-0.60.1, Solaris 2.6, gcc 2.7.2.1
Hi!
I have just downloaded the R-0.60.1 sources and have problems compiling R
on a Sun Ultra 1 running Solaris 2.6 and gcc 2.7.2.1.
I have not been able to find to find any compiling hints in the
documentation or the FAQ.
After ./configure I use make and get the output below.
Any hints are welcome.
I am not on the list, so please answer me directly too.
Best regards
Jens
---
Jens Lund
2013 Feb 26
1
Light Libraries
Dear R-Help group:
I have been tinkering with how I want my personal standard library
functions to look like. They are not designed to be professional and
heavyweight, but lightweight. There are probably dozens of little bugs,
because I don't know or have not properly taken care of a variety of
internal R code issues. still, I like how this ended up, and there is no
learning curve, so I
2005 Aug 03
3
prcomp eigenvalues
Hello,
Can you get eigenvalues in addition to eigevectors using prcomp? If so how?
I am unable to use princomp due to small sample sizes.
Thank you in advance for your help!
Rebecca Young
--
Rebecca Young
Graduate Student
Ecology & Evolutionary Biology, Badyaev Lab
University of Arizona
1041 E Lowell
Tucson, AZ 85721-0088
Office: 425BSW
rlyoung at email.arizona.edu
(520) 621-4005
2012 Mar 10
3
How do I do a pretty scatter plot using ggplot2?
Hi all,
I am trying hard to do the following and have already spent a few hours in
vain:
I wanted to do the scatter plot.
But given the high dispersion on those dots, I would like to bin the x-axis
and then for each bin of the x-axis, plot the quantiles of the y-values of
the data points in each bin:
1. Uniform bin size on the x-axis;
2. Equal number of observations in each bin;
How to do
2007 Jan 10
2
labels outliers in boxplot
Dear R-users,
Following is part of my data, where slide has 36
levels and block 48 levels. I have done boxplot for
each slide on the same graph. There are outliers for
each slide and I tried to use indentify functtion to
identify outliers in such a way that when I click on
an outlier or point, the points will be labelled by
either their block or ID or by both but without
success. How can I make
2004 Aug 12
4
Help with generating data from a 'not quite' Normal distriburtion
I would be very grateful for any help from members of this list for what
might be a simple problem...
We are trying to simulate the behaviour of a clinical measurement in a
series of computer experiments. This is simple enough to do in R if we
assume the measurements to be Gaussian, but their empirical distribution
has a much higher peak at the mean and the distribution has much longer
tails.
1999 May 03
1
problems compiling R-0.63.3 on alpha
Hi again !
Thanks for the info on updating the config.site file which I
have done. I have also added -lm in the Makeconf manually
because this is needed explicitly for DEC cc.
However, there are still a few problems when linking some
of the files as you can see from the enclosed log.
Ciao,
Andreas
-------------------------------------------------------
R-0.63.3>make
make[1]: Entering
1998 Nov 06
1
DEC alpha INSTALLATION R-0.62.4
Hi,
Just downloaded the R-0.62.4 of R and tried to install it. With the
standard procedure :
./configure
make
At the end of the compilation I got the following message :
ld:
../lib/libunix.a(system.o): main: multiply defined
fort: Severe: Failed while trying to link.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
*** Exit 1
Stop.
I attach the printout after the ./configure and make
1999 May 03
0
compilation of R-0.63.3 on alpha (PR#183)
This is a multipart MIME message.
--==_Exmh_981436288450
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi !
I have problems compiling R successfully on a DEC-UINX 4.0E.
I have applied the recommended config.site, which I enclose.
As can be seen from the compilation log there are linking errors...
I did a 'make check' which fails for the R
1997 Jul 09
1
R-beta: Problem with `rpois'
There is a problem with `rpois'. It does seem to take care about the
order of the arguments. This is an example:
> rpois(n=1,lambda=2)
[1] 3
> rpois(lambda=2,n=1)
[1] 2 0
It obviously uses the first argument as the number of samples to be
drawn, which is wrong.
I used Version 0.49 Beta (April 23, 1997).
Fredrik