Displaying 20 results from an estimated 800 matches similar to: "possible inconsistency in nlme logLik or me"
2006 Jul 18
2
Using corStruct in nlme
I am having trouble fitting correlation structures within nlme. I would like to
fit corCAR1, corGaus and corExp correlation structures to my data. I either
get the error "step halving reduced below minimum in pnls step" or
alternatively R crashes.
My dataset is similar to the CO2 example in the nlme package. The one major
difference is that in my case the 'conc' steps are
2006 Jul 01
1
nlme: correlation structure in gls and zero distance
Dear listers,
I am trying to model the distribution of fox density over years in the
Doubs department. Measurements have been taken on 470 plots in March
each year and georeferenced. Average density is supposed to be different
each year.
In a first approach, I would like to use a general model of this type,
taking spatial correlation into account:
2010 Apr 14
1
creating a new corClass for lme()
Hi,
I have been using the function lme() of the package nlme to model grouped
data that is auto-correlated in time and in space (the data was collected on
different days via a moving monitor). I am aware that I can use the
correlation classes corCAR1 and corExp (among other options) to model the
temporal and spatial components of the auto-correlation. However, as far as
I can tell, I can only
2012 Aug 29
1
spatial correlation in lme and huge correlation matrix (memory limit)
Hi,
I'm trying to introduce a (spatial) exponential correlation
structure (with range=200 and nugget.effet of 0.3) in a lme model of
this form: lme(ARBUS~YEAR, random=~1|IDSOUS).
The structure of the data is "IDSOUS" "XMIN" "YMAX" "YEAR" "ARBUS"
with 2 years of data and 5600 points for each year.
I do:
2009 Sep 01
1
understanding the output from gls
I'd like to compare two models which were fitted using gls, however I'm
having trouble interpreting the results of gls. If any of you could offer
me some advice, I'd greatly appreciate it.
Short explanation of models: These two models have the same fixed-effects
structure (two independent, linear effects), and differ only in that the
second model includes a corExp structure for
2004 Sep 22
1
impenetrable warning
Dear R-help,
Can anyone explain the meaning of the warning,
Singular precision matrix in level -1, block 1
? Or how to track down where it comes from?
More precisely, using the nlme package, I'm issued with the warning
itt2 <- lme(lrna~rx.nrti+lbrna, random=~1|patid,
cor=corExp(form=~days|patid,nugget=T), weights=varPower(
form=~lbrna),data=rna3)
Warning messages:
1: Singular
2009 Sep 22
1
odd (erroneous?) results from gls
A couple weeks ago I posted a message on this topic to r-help, the response
was that this seemed like odd behavior, and that I ought to post it to one
of the developer lists. I posted to r-sig-mixed-models, but didn't get any
response. So, with good intentions, I decided to try posting once more, but
to this more general list.
The goal is (1) FYI, to make you aware of this issue, in case it
2005 May 17
0
problem with gls : combining weights and correlation structure
Dear R-users,
I hope you will have time to read me and I will try to be brief. I am also
sorry for my poor english.
I used gls function from the package nlme to correct two types of bias in my
database. At first, because my replicates are spatially aggregated, I would
like to fit a corStruct function like corLin, corSpher, corRatio, corExp or
corGaus in my gls model, and simultaneously,
2009 Oct 21
1
odd evaluation within correlation argument of glmmPQL
[I think I've seen this reported before but can't locate it any more.
I believe this oddity (glitch? feature?) is behind a query that
Jean-Baptiste Ferdy asked a year ago
<http://finzi.psych.upenn.edu/Rhelp08/2008-October/176449.html>]
It appears that glmmPQL looks in the global workspace, not
within the data frame specified by the "data" argument, for
the variables
2007 Mar 09
4
Reg. strings and numeric data in matrix.
Hi All,
Sorry for this basic question as I am new to this R. I would like to know,
is it possible to consider a matrix with some columns having numeric data
and some other's with characters (strings) data? How do I get this type of
data from a flat file.
Thanks very much,
mallika
____________________________________________________________________________
Mallika Veeramalai, Ph.D.,
2008 Apr 20
1
Reg. consensus ranking
Dear All,
I have a list of models(1000) which have variable scores from 20 different method. I would like to rank models using consensus approach based on high scores from different methods.Is there any function available in R for this purpose? I will appreciate any pointers in this regard.
Thank you very much in Advance,
Mallika
2009 Jul 25
1
how to avoid a for looping break after an error message
Hi all,
I wrote a piece of code that generates simulated variables. after variable
generation I use them in several analyzes.
However, when I use a for to repeat the procedure 1000 times I get an erro
message in one of the "for" steps, precisely at this time:
gls.temp<- gls(y2 ~ x2,correlation=corExp(form=~coord2[,1]+coord2[,2])) #
coord 2 are spatial coordinates
and the error
2003 Jul 04
1
Quasi AIC
Dear all,
Using the quasibinomial and quasipoisson families results in no AIC being
calculated. However, a quasi AIC has actually been defined by Lebreton et al
(1992). In the (in my opinon, at least) very interesting book by Burnham and
Anderson (1998,2002) this QAIC (and also QAICc) is covered. Maybe this is something
that could be implemented in R.
Take a look at page 23 in this pdf:
2007 Oct 23
1
distributing the values of data frame to a vector based on......
I am trying to distribute the entries of a data frame (dat) to a vector (water) based on the values of two other vectors (region and year). region is also the columns and year the rows of the data frame (dat). I can write a bunch of ifelse statements or I created the for statement below - but there must be a simpler way?? The for statement probably won't work if I am distributing a non
2012 Aug 17
0
spatial auto-correlation structure in nlme
Dear R users,
I'm estimating a mixed effects model in which the spatial correlation is
controlled for by the "corGaus" structure. I'm wondering if there is a
document or paper that explains how the spatial correlation structure (such
as "corExp" or "corGaus") works.
Let me use the example and data posted on UCLA's R FAQ webpage to explain
my problems.
2006 May 11
1
bug report - cor (PR#8852)
Full_Name: daniel t. O'Shea
Version: 2.2.1
OS: xp
Submission from: (NULL) (156.98.28.4)
using the cor command in the base package.
cor(x,y)
x is a matrix (15 rows and 1000 columns). I did not specify a column and R
crashed - shut down.
error signature
AppName:rgui.exe AppVer 2.21.51220.0
ModName: r.dll
ModVer: 2.21.51220.0
2007 Aug 21
2
summing columns of data frame by group
I have a data frame and one separate vector that is a grouping variable for the data frame. I would like to take all rows of the data frame belonging to each group and then sum the columns with out using a for statement.
Something like: take all rows of group 1 then apply(group1.data,1,sum), but do this without having to do it separately for each group. Any ideas? thank you.
Dan
2004 Jun 01
1
multi-model inference
Hello
I've been investigating using multi-model inference, based on calculating
AIC and AIC weights, using the techniques outlined in Burnham and
Anderson's (2002) book. However I notice a couple of emails in the R-help
archive stating that there are errors in the technique. Are these errors
associated with the particular implementation that B & A propose in their
text, or is the
2011 Mar 24
3
How create vector that sums correct responses for multiple subjects?
I have a data file with indicates pretest scores for a linguistics
experiment. The data are in long form so for each of 33 subjects there are
400 rows, one for each item on the test, and there is a column called
‘Correct’ that shows ‘C’ for a correct response and ‘E’ for an incorrect
response. I am trying to write a formula that will create a vector that
indicates the number of correct answers
2006 Feb 20
1
Nested AIC
Greetings,
I have recently come into some confusion over weather or not AIC
results for comparing among models requires that they be nested.
Reading Burnham & Anderson (2002) they are explicit that nested
models are not required, but other respected statisticians have
suggested that nesting is a pre-requisite for comparison. Could
anyone who feels strongly regarding either position