Displaying 20 results from an estimated 700 matches similar to: "Testing for differences in amplitude and phase"
2009 Jul 15
0
time series fiting and residual computing
Dear 'R' Users,
I have CO2 timeseries which I want to fit with fourth harmonic function and
then would like to compute residuals.
I tried with two option but not sure which one is correct, kindly any one
can help correcting me:
#
#I would like to fit a model with Fourth harmonic function as:
2011 Feb 13
1
calculate phase/amplitude of fourier transform function in R
I did a fourier transform on a function in time domain to get the following
functions in frequency domain (in latex):
$Y_1[\omega] = \frac{1}{1-\phi_1 e^{-jw}}$
$Y_2[\omega] = \frac{1}{1-(\phi_1 + \phi_2)e^{-jw} +\phi_1\phi_2e^{-2jw}}$
How do I find the spectrum of this function for given $\phi_1$ and $\phi_2$
coefficients and in the discretization interval $w = [-\pi:.1*\pi: \pi]$?
Then, how
2011 Oct 02
0
Arimax First-Order Transfer Function
Dear list members,
I am a (very) recent convert to R and I am hoping you can help me with a
problem I'm having. I'm trying to fit a first-order transfer function to an
ARIMA intervention analysis using the "arimax" function. The data was
obtained from McCleary & Hay (1980) (via Rob Hyndman's Time Series Library:
http://robjhyndman.com/tsdldata/data/schizo.dat). It has
2004 Dec 09
0
elliptic functions
Hi List
I'm thinking of putting together some R functionality (maybe a package)
of elliptic functions. An elliptic function is one that is doubly
periodic on the
complex plane and I think they are cool.
One objective of mine is to reproduce Abramowitz and Stegun's
beautiful diagram on
p643 (figure 18.5).
The gsl package does sn, cn, dn et seq, but before I put a huge amount
of
2009 Feb 10
1
Fast fourier transformation
Hi,
here is a practical problem we would like to solve. In a pneumatic post the
acceleration of the capsule is measured and plotted over time. From the
graph achieved we would like to derive some kind of statistic value that
describes the stress the capsule, or what is in it, is exhibited to.
The amount of stress introduced to the capsule will probably depend on two
things, the maximum
2010 Feb 16
2
for loop Vs apply function Vs foreach (REvolution enhancement)
Dear all,
I know this topic has already been covered in other posts (at least the for loop Vs apply family of function), but I am looking for fresh / up-to-date opinion and feedback on those 3 methods to run unavoidable loops in R. I realise that it may be too general question for many, so any feedback appreciated.
1. apply Vs for loop
>> Seems apply is (was?) supposed to be faster than
2012 Apr 09
0
Question on harmonic (Fourier) analysis of sinusoidal time series
Hello,
I will try to explain the problem, sorry if it will be a little long...
I'm using R to analyze results of cyclic mechanical testing, like this:
- apply quasi-sinusoidal load
- measure quasi-sinusoidal vertical and horizontal deformations
(quasi-sinusoidal load means that load "should be" sinusoidal, but testing
machine puts in some noise...)
I enclose a sample of data at
2002 Jan 19
1
Synthesis of harmonic functions
Hello,
I try to synthesize harmonic functions with a subset of frequencies
determined by fast fourier transform. I wrote two different functions, a
looped version and a matrix multiplication version. As an example the
looped version takes 5 sec and the matrix-version takes 3-4 sec (R 1.4,
Athlon 1.2 GHz, 256 MB, Win ME), but the latter needs huge amount of
memory due to the matrices. So, none of
2009 Feb 10
1
harmonic function fiting? how to do
Dear R Users,
I have a CO2 time series. I want to fit this series seasonal cycle and trend
with fourth harmonic function,
and then compute residuals.
I am doing something like:
file<-read.csv("co2data.csv")
names(file)
attach(file)
fit<-lm(co2~1+time+I(time^2)+sin(2*pi*time)+cos(2*pi*time)+sin(4*pi*time)+cos(4*pi*time)+
2011 Oct 13
1
Fitting a Harmonic Function to Time Series Data
Dear All,
I have some time series data where X=month and Y=nutrient concentration (I
can have several concentration data for one month). Is there a way to fit
for it an Harmonic Function. Is there a package, script,etc which I can use?
Thx
--
View this message in context: http://r.789695.n4.nabble.com/Fitting-a-Harmonic-Function-to-Time-Series-Data-tp3901266p3901266.html
Sent from the R help
2006 Jul 31
0
Three questions about a model for possibly periodic data with varying amplitude
Hi dear R community,
I have up to 12 measures of a protein for each of 6 patients, taken
every two or three days. The pattern of the protein looks periodic,
but the height of the peaks is highly variable. It's something like
this:
patient <- data.frame(
day = c(1, 3, 5, 8, 10, 12, 15, 17, 19, 22, 24, 26),
protein = c(5, 3, 10, 7, 2, 8, 25, 12, 7, 20, 10, 5)
)
plot(patient$day,
2011 Feb 08
1
Recuperate Spectrum() amplitude
Dear list,
I apologies first for my English, hope you will understand well my question.
I am working on 1/2 hour piezometric data, time unit is second. They
present daily oscillation when using the spectrum() function. What I am
really interested in, is to find the amplitude corresponding to this
oscillation.
I work with a college using Matlab, and although we apply the same
methodology, our
2006 Aug 15
1
A model for possibly periodic data with varying amplitude [repost, much edited]
Hi dear R community,
I have up to 12 measures of a protein for each of 6 patients, taken
every two or three days. The pattern of the protein looks periodic,
but the height of the peaks is highly variable. I'm testing for
periodicity using a Monte Carlo simulation envelope approach applied
to a cumulative periodogram. Now I want to predict the location of
the peaks in time. Of course, the
2007 Dec 18
1
Multiple plots with single box
Hello,
I am trying to display some harmonic functions in a plot. The kind of
display I have in mind is like the one that cn be obtained by a call
to plot.ts with plot.type = "multiple". The only difference is that I
want a single box containing all the plots instead of one box per
plot. I thought box(which = "outer") would have done the job, but it
didn't.
Below is the
2009 May 27
2
Harmonic Analysis
I am looking for a package to perform harmonic analysis with the goal of estimating the period of the dominant high frequency component in some mono-channel signals.
I guess there are presumably a number of CRAN packages allowing for such analysis. However, my search with keywords was not successfull. It brought up a lot of Fourier miscellanea but nothing specifically geared for my needs.
I would
2006 Jul 03
1
Harmonic Regression in R
Dear all:
Does anyone has harmonic regresssion analysis package written in R (to be used in Windows platform) ?
Thanks
_______________________________________
YM - Â÷½u°T®§
´Nºâ§A¨S¦³¤Wºô¡A§AªºªB¤Í¤´¥i¥H¯d¤U°T®§µ¹§A¡A·í§A¤Wºô®É´N¯à¥ß§Y¬Ý¨ì¡A¥ô¦ó»¡¸Ü³£ÉN¨«¥¢¡C
http://messenger.yahoo.com.hk
[[alternative HTML version deleted]]
2003 Jul 18
0
Harmonic mean center of animal locations
Hello list;
I am working with a dataset containing animal locations over time for a large
number of individuals. I would like to compute a center of activity by
finding the minimum harmonic mean on a grid overlaying the points of an
animal (a "standard" to express center of activity in animal ecology).
I have searched the archives at Jonathan Barons server but have not been able
2004 Dec 06
0
Harmonic regression in R
I' need to smooth a serie univariate with harmonic
regression, but i do not know if it exists somepeople
know in R this type of regression, not in S-plus.
Thank's
_________________________________________________________
2011 Feb 22
2
How to find points of intersection between harmonic function and a line
Hi,
Sorry for the very short explanation about the problem of intersection.
I have a wave function monitored from the heart beat in a particular interval of
times.?Apart?fom that, there is?a line with positive slope (e.g: y = x+2) which
lies across the wave and intersect on a number of points. My problem is i have
no exact equation for?such a?complex harmonic wave produced by the heart
2012 Sep 27
1
What to use for ti in back-transforming summary statistics from F-T double square-root transformation in 'metafor'
Hi Dr. Viechtbauer,
I'm doing meta-analysis using your package 'metafor'. I used the 'IRFT' to transform the incident rate. But when I tried to back-transform the summary estimates from function rma, I don't know what's the appropriate ti to feed in function transf.iirft. I searched and found your post about using harmonic mean for ni to back-transform the double