Displaying 20 results from an estimated 4000 matches similar to: "Plot cdf, pdf"
2011 Oct 28
2
sorting data
I want to sort my following data set according to value in 4th column
0 1 0 27877.3044386212 15.8733019973557 2640.42407064348
0 1 1 27470.1699006254 35.4182473588807 2303.26461260826
0 1 2 27468.0314985496 38.4400363878507 2300.05521684593
0 1 3 27469.1130543141 40.7540672493746 2299.32564458085
0 1 4 27442.3152643187 52.4342875797706 2277.18286686329
0 1 5 27440.7923082136
2011 Jul 28
3
construct a data set
Hi,
i want to construct a data set similar to "AirPassengers".
Its attributes are following.
> attributes(AirPassengers)
$tsp
[1] 1949.000 1960.917 12.000
$class
[1] "ts"
How Can I construct a data set similar to it having same class and attributes.
Thanks
--
Amar Kumar Nandan
?:nandan.amar at gmail.com
http://aknandan.co.nr
2011 May 27
1
finding derivative of a data series in R
Dear All,
I tried following for getting derivative of a polynomial in R
i<- -10:10
x<-i*i*i+3*i*i+2
fun_spline<-splinefun(i,x)
plot(x,type="l")
lines(x,fx_spline(x, deriv=1), col='green')
lines(x,fx_spline(x, deriv=2), col='green')
Now when I plot
3*i*i + 6*i and 6*i + 6
the plot was not same for first deivative.
where as the 2nd derivative was same
Is this a
2011 Apr 04
1
system() command in R
Hi all,
I have a local server insalled on my system and have to start that from
within my R function.
here is how I start it:
cmd<-"sh start-server.sh"
system(cmd, wait=FALSE)
My function has to start the server and proceed with further steps. The
server starts but the further steps of the program are not executed.The
cursor keeps waiting after the server is started.
i tried
2011 Apr 07
1
comparing ARIMA model to data
hi,
i am trying to teach myself about ARIMA models. i have followed examples
from a number of sources and have more or less got the hang of how it
works. i would like to compare the output from the fitted model to the
original data. is this possible? or even a meaningful thing to do?
to be clear, for example, having generated a fit to some data using
> fit <- arima(LakeHuron, order = c(1,
2011 Jan 23
3
using gsarima package with R
I am trying to use function garsim from package gsarima.
I can download gsarima package from
http://cran.fyxm.net/web/packages/gsarima/index.html for linux.
But how I can add it to R.
I have compiled and installed R from its R source code under Ubuntu.
regards.
--
Amar Kumar Nandan
Karnataka ,India , 560100
http://aknandan.co.nr
[[alternative HTML version deleted]]
2011 Apr 02
4
help
Dear R Help group
I need to run a command line script from within R session. I am not clear
how i can acheive this. I tried shell and system function, but i am missing
something critical.can someone provide help?
My intention is to create a pdf file of a plot in R and then attach
existing files from my system as attachment into the newly created pdf file.
Any help would be greatly appreciated..
2011 May 17
2
pdf (probability distribution function) and cdf
Dear all,
I would like for a given vector to calculate the pdf and the cdf and then plot these two graphs.
Is there in R any toolkit that can help me do that fast?
Regards
Alex
2012 Mar 24
1
plotting with line types... bit confusing
Dear all,
I would like to print an empirical cdf on a vector I have
while the plot(ecdf(myVector)) works great when I try to specify the line type to be a line (I get points) with
plot(ecdf(myVector),type="lines")
Error in plot.default(NA, NA, type = "n", xlim = xlim, ylim = ylim, xlab = xlab, :
formal argument "type" matched by multiple actual arguments
I get
2012 Jun 14
2
plot cdf
Good Afternoon,
I'm trying to create a cdf plot, with the following code. It works well,
but I have little doubt, if you can help solve. When I create the plot,
like the graph line would still not appear with point
#cdf
x<-table(Dataset$Apcode)
View(s)
hist(s)
*plot(ecdf(x))*
x<-1 37607
2 26625
3 5856
4 25992
5 30585
6 16064
7 9850
..
...
..
186 52
--
View this message in
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.
I tried this below and it gives me two plots of ecdf but just both just in
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
2003 May 08
2
approximation of CDF
Hi all,
is there any package in R capable of smooth approximation of CDF
basing on given sample?
(Thus, I am not speaking about ecdf)
In particular, I expect very much that the approximation should
subject to the property:
f(x0)<=f(x1) for x0<x1, where x0 and x1 belong to range of
the sample given.
Polynomial approximation could be OK for me as well.
P.S.
2006 Jun 30
1
Empirical CDF
Good day everyone,
I want to assess the error when fitting a Gram-Charlier
CDF to some data 'ws', that is, I want to calculate:
Err = |ecdf(ws) - GCh_ser(ws)|
The problem is, I cannot get the F(x) values from the
ecdf.
'Summary(ecdf())' returns some of the x-axis values,
but how do you get the F(x) values?
Thank you for any help you can provide.
Regards,
Augusto
2010 Nov 22
1
need smooth cdf lines
Hi,
I would like to overlap the cdf curve for observed and generated data Here is
my code:
plot(cdf,main ="CDF of the sum for winter
season-Hume",cex.axis=1.2,xlab="Rainfall (mm)",
xaxs="i",yaxs="i",col=c("black","red"), lty=c(1,1),ylab="Cumulative
probability", xlim=c(0,800),lwd=1)
lines(ecdf(datobs))
2012 Feb 17
1
QQ plot
Hello,
I am having two data set original and predicted.
I want to dind QQ-plot fot it.
I tried in following manner :
>qq(original~predicted)
and error was :
Error in qq.formula(o ~ p) : y must have exactly 2 levels
There is an option "qtype" which dosent make any difference.
What is the correct way for plotting QQ-plot or am I missing something.
--
Amar Kumar Nandan
2011 Feb 27
2
finding model order components for arima()
Greetings,
I am trying to model a time series using arima(). For getting the
model order components(p, d, q and P,D,Q) I am using procedure
discussed in [1] in section 3.2 . It is most likely hit and trial
method based on lower AIC value.
I want to know what is the correct way to find model order components
or the method described in [1] is the appropriate one.
thanks in advance.
--
[1]Automatic
2009 Sep 06
1
using histogram to find cdf
Dear all,
How can I use the histogram density estimate (hist) to find the value of the cdf at a certain point?
Thanks
Maram
[[alternative HTML version deleted]]
2011 Feb 17
0
[BioC] Make.cdf.package error
Hi everybody,
I tried to analyze a custom Affymetrix 3'-biased Array. So I wanted to make
a cdf package. (My CDF file size is 1.12Go).
I tried several methods but the same error occured
Method 1
> #Set the working directory
> setwd("D:/Analyse R/Cel files")
> #library to create cdf env
> library("makecdfenv")
>#Create cdf environment
>pkgpath
2006 Dec 04
0
How to calculate area between ECDF and CDF?
Hi all,
I'm working with data to which I'm fitting three-parameter weibull
distributions (shape, scale & shift). The data are of low sample sizes
(between 10 and 80 observations), so I'm reluctant to check my fits
using chi-square (also, I'd like to avoid bin choice issues). I'd use
the Kolmogorov-Smirnov test, but of course this is invalid when the
distribution
2008 Jul 17
2
Sampling distribution (PDF & CDF) of correlation
Hi all,
I'm looking for an analytic method to obtain the PDF & CDF of the
sampling distribution of a given correlation (rho) at a given sample
size (N).
I've attached code describing a monte carlo method of achieving this,
and while it is relatively fast, an analytic solution would obviously
be optimal.
get.cors <- function(i, x, y, N){
end=i*N