Displaying 20 results from an estimated 7000 matches similar to: "Autoregressive Model with Independent Variable"
2007 Aug 07
1
Functions for autoregressive Regressionmodels (Mix between times series and Regression Models) ?
Hello everybody,
I've a question about "autoregressive Regressionmodels".
Let Y[1],.....,Y[n], be a time series.
Given the model:
Y[t] = phi[1]*Y[t-1] + phi[2]*Y[t-1] + ... + phi[p]*Y[t-p] + x_t^T*beta + u_t,
where x_t=(x[1t],x[2t],....x[mt]) and beta=(beta[1],...,beta[m]) and u_t~(0,1)
I want to estimate the coefficients phi and beta.
Are in R any functions or packages for
2007 Feb 13
4
Advice on visual graph packages
Hey, all. I'm looking for packages that are good at two things
1) Drawing directed graphs (i.e nodes and edges), both with single
and double headed arrows, as well as allowing for differences in line
width and solid versus dashed. Note: I've tried Rgraphviz here, but
have run into some problems (which seem fixable and I may go with it
in the end), and it doesn't satisfy need
2008 Nov 19
2
simulation of autoregressive process
Dear R users,
I would like to simulate, for 20000 replications, an autoregressive process: y(t)=0.8*y(t-1)+e(t) where e(t) is i.i.d.(0,sigma*sigma),
Thank you in advance
____________________________________________________
Écoutez gratuitement le nouveau single de Noir Désir et découvrez d'autres titres en affinité avec vos goûts musicaux
2002 Dec 10
1
autoregressive poisson process
Dear R users,
I am trying to find a package that can estimate
an autoregressive model for discrete data. I am
imagining a Poisson or Gamma process in which the
mean (say mu) follows a process such as
mu_t = a + b*x + c*mu_{t-1}
Suppose I have data on the time-series Poisson
outcomes and x and would like to obtain ML estimates
for b and c.
Does anyone know of a package that can do this
2005 Mar 05
4
How to use "lag"?
Is it possible to fit a lagged regression, "y[t]=b0+b1*x[t-1]+e",
using the function "lag"? If so, how? If not, of what use is the
function "lag"? I get the same answer from y~x as y~lag(x), whether
using lm or arima. I found it using y~c(NA, x[-length(x)])). Consider
the following:
> set.seed(1)
> x <- rep(c(rep(0, 4), 9), len=9)
> y <-
2008 Apr 15
2
glht with a glm using a Gamma distribution
Quick question about the usage of glht. I'm working with a data set
from an experiment where the response is bounded at 0 whose variance
increases with the mean, and is continuous. A Gamma error
distribution with a log link seemed like the logical choice, and so
I've modeled it as such.
However, when I use glht to look for differences between groups, I get
significant
2008 May 06
1
question about se of predicted glm values
Hey, all. I had a quick question about fitting new glm values and
then looking at the error around them. I'm working with a glm using a
Gamma distribution and a log link with two types of treatments.
However, when I then look at the predicted values for each category, I
find for the one that is close to 0, the error (using se.fit=T with
predicted) actually makes it overlap 0.
2006 Sep 13
1
Updating lmer - object is not subsettable?
I'm attempting to write a general function to implement Faraway's
bootstrapping algorithm for mixed models with lmer, but have run into
a curious problem. I'm comparing two models
model.1<-lmer(Response ~ Treatment + (1|Trial), data=exp.data,
method="ML")
model.2<-lmer(Response ~ 1 + (1|Trial), data=exp.data, method="ML")
When I attempt to update
2009 Apr 29
1
Hierarchical Diagram of Networks in sna or otherwise?
I've been using sna to work with some networks, and am trying to visualize
them easily. My networks are hierarchical (food webs). All of the layout
engines I've tried with gplot don't seem to plot hierarchical networks, as
one would using dot from graphviz. While I could do all of this by
outputting to dotfiles and running it through graphviz, the graphics I get
from R are much
2008 May 22
1
How to account for autoregressive terms?
Hi,
how to estimate a the following model in R:
y(t)=beta0+beta1*x1(t)+beta2*x2(t)+...+beta5*x5(t)+beta6*y(t-1)+beta7*y(t-2)+beta8*y(t-3)
1) using "lm" :
dates <- as.Date(data.df[,1])
selection<-which(dates>=as.Date("1986-1-1") & dates<=as.Date("2007-12-31"))
dep <- ts(data.df[selection,c("dep")])
indep.ret1
2008 Feb 04
1
extracting AIC scores from lmer and other objects
I have a slight conundrum. I'm attempting to write a scrip that will
take a number of objects (lm, glm, and lmer) and return AIC scores
and weights. I've run into 3 problems, and was wondering if anyone
had any pointers.
1) is there any convenient way to extract the name of the objects?
Simply, if I have a vector of objects c(my.lm, my.lmer) and I want to
get a character
2005 Jul 08
1
help with ARIMA and predict
I'm trying to do the following out of sample
regression with autoregressive terms and additional x
variables:
y(t+1)=const+B(L)*y(t)+C(1)*x_1(t)...+C(K)*x_K(t)
where:
B(L) = lag polynom. for AR terms
C(1..K) = are the coeffs. on K exogenous variables
that have only 1 lag
Question 1:
-----------
Suppose I use arima to fit the model:
2009 Jun 15
1
altering a global variable
I'm working on a program that loads several large data files. I'm
using ddply (plyr is really awesome) but I want to minimize the amount
of times a large data file is read in. One solution is to keep track
of which data file is open with a global variable and then change the
currently open data file globally as needed. However, I'm unclear on
how to alter a global variable
2011 Oct 16
1
multicore combn
This is a 'rather than re-invent the wheel' post. Has anyone out there
re-written combn so that it can be parallelized - with multicore, snow, or
otherwise? I have a job that requires large numbers of combinations, and
rather than get all of the index values, then crank it through mclapply, I
was wondering if there was a way to just do this natively within a function.
Just curious.
2006 Feb 27
1
Query on multivariate time series
Hi,
Could anyone inform how to perform multi-variate auto regression using
the past 't' values for regression in R. I have looked at ARMA
provided by DES library and mvr provided by PLS library but could not
match them to my requirements.
Specifically, I want the following
Say I have attributes a1-a4. and the regression equation is as follows:
a4(t) =
2009 Aug 31
1
R2 for SAR and validation
Hi everyone,
How can i obtain R2 for SAR model? and how can i validate the results, can i use the coefficients directly in a simple formula like y=b0+b1*x1+... or do i have to use the complicated formula for SAR (the one with the weight matrix and rho and...)?
Thanks for any help!
[[alternative HTML version deleted]]
2011 Mar 29
1
Simple AR(2)
Hi there, we are beginners in R and we are trying to fit the following time
series using ar(2):
> x <- c(1.89, 2.46, 3.23, 3.95, 4.56, 5.07, 5.62, 6.16, 6.26, 6.56, 6.98,
> 7.36, 7.53, 7.84, 8.09)
The reason of choosing the present time series is that the we have
previously calculated analitically the autoregressive coefficients using
the direct inversion method as 1.1, 0.765, 0.1173.
2005 Nov 08
2
A Quick and (Very) Dirty Intro to Stats in R
Greetings to all,
First off, I want to thank you all for answering any nagging questions
I've had over the past few days. I've been in the process of putting
together A Quick and (Very) Dirty Intro to Doing Your Statistics in R
(which I have posted to http://didemnid.ucdavis.edu/rtutorial.html ) in
order to teach an R workshop for the graduate students in my
department. This is a
2005 Nov 15
1
Repeates Measures MANOVA for Time*Treatment Interactions
Dear R folk,
First off I want to thank those of you who responded with comments for
my R quick and dirty stats tutorial. They've been quite helpful, and
I'm in the process of revising them. When it comes to repeated
measures MANOVA, I'm in a bit of a bind, however. I'm beginning to see
that all of the documentation is written for psychologists, who have a
slightly
2004 Jul 23
3
vetor autoregressions and BVARs
I have not been able to find any programs for running vector
autoregressions with R. I am interested in running Bayesian VARs and
also running VARs that run all combinations of variables in the vector.
Is anyone currently developing this?
-Nirav Mehta