Displaying 20 results from an estimated 2000 matches similar to: "finding derivative of a data series in R"
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 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 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]]
2006 Mar 17
1
Derivative of a splinefun function.
Is there a way of calculating the derivative of a function returned
by splinefun()? Such a function is a cubic spline, whence it has a
calculable derivative, but is there a (simple) way of getting at it?
One workaround that I have thought of is to take a fine grid of
points, evaluate the function returned by splinefun() at these
points, put an interpolating spline through these points using
2008 Oct 06
1
splinefun gives incorrect derivs when extrapolating to the left (PR#13132)
This is a low priority bug that has been around for a while, but I came acr=
oss it again while alpha testing 2.8.
The resulting function for splinefun gives incorrect deriv values when x is=
less than the smallest x-value used to create the function (at least in on=
e circumstance), but does the correct thing for x greater than the largest =
x-value.
Here is an example:
> x <- 1:10
>
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
2012 Nov 15
1
create function to solve derivative
Readers,
A data set comprises
A B C
10 6 .2
20 7 .4
30 8 .16
40 9 .0256
My requirement is to obtain the derivative for values of A with
respect to B, create a function in R and plot this derivative against
another variable (e.g. values in column C).
Have searched the mailing list and found reference to a function 'D',
but the help accessed via '?D' and '?deriv' does not
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 Jun 02
1
Plot cdf, pdf
Dear all,
do you know any easy way based on a vector input how to plot easily cdf and pdf.
I would like to thank you in advance for your help
Regards
Alex
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,
2009 Mar 31
2
How to generate natural cubic spline in R?
Suppose I have two var x and y,now I want to fits a natural cubic
spline in x to y,at the same time create new var containing the
smoothed values of y. How can I get it?
2010 Feb 15
1
Non-monotonic spline using splinefun(method = "monoH.FC")
Hi,
In my version of R, the stats package splinefun code for fitting a
Fritsch and Carlson monotonic spline does not appear to guarantee a
monotonic result. If two adjoining sections both have over/undershoot
the way the resulting adjustment of alpha and beta is performed can give
modified values which still do not satisfy the required constraints. I
do not think this is due to finite precision
2006 Nov 21
2
Symbolic derivation using D in package stats - how do I properly convert the returned call into a character string?
Dear all,
I am using the function 'D' in the 'stats' package to perform symbolic
derivation.
This works very well and it is much faster than e.g. Mathematica (at
least for my purposes).
First, I would like to thank the development team for this excellent
function.
However, I run into trouble in some cases, particularly when I am to do
some operations on long expressions
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..
2007 Apr 11
3
Any pointers for multiple subnets?
Hi,
I am trying to have some routing done between two subnets. One is
192.168.1.0/24 and has my LAN computers running a mix of Windows 98/XP
clients. There are two linux machines on this network running Samba.
Another is 192.168.0.0/24 and has the other LAN. Only my linux machines
have two NICs, one for each LAN.
I am trying out one of these linux machines to be the gateway for both
the
2004 Nov 23
1
making winxp machine a member of the domain
Hi,
I am using Samba 3.0.7. on a Red Hat 9 system. I
tried to configure the machine as a PDC by using a
configuration file quite similar to what is giving in
the chapter 4.Windows NT domains of 'Using Samba'
2nd edition by Orielly.
Using testparm shows that the machine has been
identified as a PDC of the domain 'hamsateam.' To test
the PDC, I tried to make a WinXP
2002 May 03
2
(no subject)
hi all,
Iam using the following CBQs to limit the FTP bandwidth
pease tell what changes are rquired to make it work....
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq allot 1514 avpkt 1000
bandwidth 100Mbit
tc class add dev eth0 parent 1:0 classid 1:1 cbq allot 1514
bandwidth 100Mbit rate .4Mbit weight .4 prio 2 maxburst 20 cell
8 avpkt 1000
tc class add dev eth0
2016 May 01
2
Storage of byte code-compiled functions in sysdata.rda
Hi r-devels,
we are seeing a new problem with our packages RobAStRDA (just new on CRAN, thanks
to Uwe and Kurt!) and RobExtremes (to be submitted).
It must be something recent with the way you internally treat/store byte-code compiled
functions, as we have no problems with R-3.1.3, but do see an "Error in fct(x) : byte code
version mismatch" with R-devel SVNrev r70532.
Background:
2011 Oct 18
2
gluster rebalance taking three months
Hi guys,
we have a rebalance running on eight bricks since July and this is
what the status looks like right now:
===Tue Oct 18 13:45:01 CST 2011 ====
rebalance step 1: layout fix in progress: fixed layout 223623
There are roughly 8T photos in the storage,so how long should this
rebalance take?
What does the number (in this case) 22362 represent?
Our gluster infomation:
Repository