Displaying 20 results from an estimated 3000 matches similar to: "autocorrelation error: cannot allocate vector of size 220979 Kb"
2008 May 16
1
autocorrelation in nlme; Error: cannot allocate vector of size
Dear R community,
I used a linear mixed model (named lm11) to model daily soil temperature
depending upon vegetation cover and air temperature. I have almost 17,000
observations for six years.
I can not account for autocorrelation in my model, since I receive the error
message after applying the function:
update(lm11, corr=corAR1())
Error: cannot allocate vector of size 220979 Kb
Do
2008 May 17
0
autocorrelation in nlme: Error: cannot allocate vector of size 220979 Kb
Dear R community,
Below you may find the details of my model (lm11). I receive the error
message "Error: cannot allocate vector of size 220979 Kb" after
applying the autocorrelation function update(lm11, corr=corAR1()).
lm11<-lme(Soil.temp ~ Veg*M+Veg*year,
data=a,
random = list(Site=pdDiag(~Veg),
Plot=pdDiag(~Veg))
2007 Oct 29
1
lm design matrix bug?
Hi All
Maybe I dont understand it, but I would have expected that the design matrix has
as many rows as there were observations available to fit the model.
Below a small artificial dataset created, then one model fitted and the design
matrix outputted, having 27 rows. Then I delete 6 obs, and fit the model on
these 21 obs, but the design matrix that comes out has 26 rows?
Thanks for your
2008 Aug 14
1
autocorrelation in gams
Hi,
I am looking at the effects of two explanatory variables on chlorophyll.
The data are an annual time-series (so are autocorrelated) and the
relationships are non-linear. I want to account for autocorrelation in
my model.
The model I am trying to use is this:
Library(mgcv)
gam1 <-gam(Chl~s(wintersecchi)+s(SST),family=gaussian,
na.action=na.omit, correlation=corAR1(form =~
2008 Jul 04
1
Test for multiple comparisons: Nonlinear model, autocorrelation?
Dear R community,
I have a nonlinear model describing average daily soil temperature. What test should I use to compare differences in soil temperature of the two studied vegetation types depending upon month?
Building linear contrasts for the developed nonlinear model does not help since this model does not include variable “Months” (only “Days”).
1) Just a Student’s test is not probably
2008 Oct 16
0
R package: autocorrelation in gamm
Dear users
I am fitting a Generalized Additive Mixed Models (gamm) model to
establish possible relationship between explanatory variables (water
temperature, dissolved oxygen and chlorophyll) and zooplankton data
collected in the inner and outer estuarine waters. I am using monthly
time-series which are auto-correlated.
In the case of the inner waters, I have applied satisfactoryly (by
2005 Feb 10
2
correcting for autocorrelation in models with panel data?
Hi
I have some panel data for the 50 US states over about 25 years, and I
would like to test a simple model via OLS, using this data. I know how
to run OLS in R, and I think I can see how to create Panel Corrected
Standard Errors using
http://jackman.stanford.edu/classes/350C/pcse.r
What I can't figure out is how to correct for autocorrelation over
time. I have found a lot of R stuff on
2011 Jun 08
1
Autocorrelation in R
Hi,
I am trying to learn time series, and I am attending a colleague's
course on Econometrics. However, he uses e-views, and I use R. I am
trying to reproduce his examples in R, but I am having problems
specifying a AR(1) model. Would anyone help me with my code?
Thanks in advance!
Reproducible code follows:
download.file("https://sites.google.com/a/proxima.adm.br/main/ex_32.csv
2008 May 30
1
Alternative options: nonlinear model &autocorrelation?
Dear R community,
Using nlme library I have developed a nonlinear mixed model. Incorporating
an autoregressive model gives me an error that I can't allocate vector of
size X. The problem is that my computer does not have enough physical memory
most probably due to a large number of observations (17,000).
I was wondering what alternative options I might use:
1) To use ARIMA and
2006 May 15
1
what's wrong with my "gls"? it does not allocate memory... even for the simplest AR1 model...
> myfit1 <- gls(col1 ~ col2+col3+col4+col5+col6-1, data=data2, corr=corAR1(
0.3202), method='ML')
Error: cannot allocate vector of size 199712 Kb
if I get rid of the "corr=corAR1(0.3202)" option, it works okay...
can anybody help me?
thanks a lot!
[[alternative HTML version deleted]]
2006 May 11
1
t-test with autocorrelation correction
Has anyone implemented a t-test with the effective sample size
correction proposed by Dale and Fortin, Ecoscience 9(2):162-167, 2002,
using a discussion by Cressie, 1993, page 15?
thanks,
Denis
2005 Apr 15
1
AR1 in gls function
Dear R-project users
I would like to calculate a linear trend versus time taking into account a
first order autoregressive process of a single time series (e.g. data$S80
in the following example) using th gls function.
gls(S80 ~ tt,data=data,corAR1(value, form, fixed))
My question is what number to set in the position of value within corAR1?
Should it be the acf at lag 1?
I look forward for
2006 Jul 13
1
Extracting Phi from gls/lme
I am trying to extract into a scalar the value of Phi from the printed
output of gls or lme using corAR1 correlation. ie I want the estimate of
the autocorrelation. I can't see how to do this and haven't seen it
anywhere in str(model.lme).
I can get all the other information - fixed and random effects etc.
Is there an obvious way so that I can save the brick wall some damage?
TIA
2007 Oct 09
2
Help with gamm errors
Dear All
Hopefully someone out there can point out what I am missing! I have a
(large, several hundred) dataset of gardens in which over two years the
presence/absence of a particular bird species is noted each week. I have
good reason to believe there is a difference between the two years in the
weekly proportion of gardens and would like to assess this, before going on
to look in more detail at
2011 Mar 16
1
Autocorrelation in linear models
I have been reading about autocorrelation in linear models over the last
couple of days, and I have to say the more I read, the more confused I
get. Beyond confusion lies enlightenment, so I'm tempted to ask R-Help for
guidance.
Most authors are mainly worried about autocorrelation in the residuals,
but some authors are also worried about autocorrelation within Y and
within X vectors
2009 Aug 13
1
R code to reproduce (while studying) Bates & Watts 1988
Hi R users,
I'm here trying to understand correlated residuals in nonlinear estimation.
I'm reading/studying the book Bates, D. M. and D. G. Watts, (1988),
/Nonlinear regression analysis and its applications/, Wiley, NY. pages
92-94, trying to reproduce the figures and to find out the code in R to
perform the necessary calculations.
I also consulted Pinheiro and Bates, but without
2012 May 03
1
conducting GAM-GEE within gamm4?
Dear R-help users,
I am trying to analyze some visual transect data of organisms to generate a
habitat distribution model. Once organisms are sighted, they are followed
as point data is collected at a given time interval. Because of the
autocorrelation among these "follows," I wish to utilize a GAM-GEE approach
similar to that of Pirotta et al. 2011, using packages 'yags' and
2008 Jan 25
1
Trouble setting up correlation structure in lme
Hi, I'm trying to set up AR(1) as a correlation structure in modeling some
data (attached file data.txt in text format) with lme, but have trouble
getting it to work.
Incent, Correctness, and Oppor are 3 categorical variables, Beta is a
response variable, and Time is an equally-spaced variable with 6 time points
(treated as a categorical variable as well). Basically I want to model the
2011 Aug 08
1
mixed model fitting between R and SAS
Hi al,
I have a dataset (see attached), which basically involves 4 treatments for a chemotherapy drug. Samples were taken from 2 biopsy locations, and biopsy were taken at 2 time points. So each subject has 4 data points (from 2 biopsy locations and 2 time points). The objective is to study treatment difference.?
I used lme to fit a mixed model that uses "biopsy.site nested within pid"
2007 Sep 12
2
Nested anova with unbalanced design and corrected sample size for spatial autocorrelation
Hello all,
This may be a simple question to answer, but I'm a little bit stumped with
respect to the calculation of the F statistics in nested anovas with
unbalanced design in R.
In my case, I have 11 vegetation transects (with 1000 10cmx10cm squares),
where we estimated shrub cover. We have two different treatments: wildfire
(4 transects) and prescribed burning (7 transects) and we want to