Displaying 20 results from an estimated 500 matches similar to: "Handling realisations in geoRglm"
2012 Oct 04
1
geoRglm with factor variable as covariable
Dear R users.
I'm trying to fit a generalised linear spatial mode using the geoRglm
package. To do so, I'm preparing my data (geodata) as follow:
geoData9093 = as.geodata(data9093, coords.col= 17:18, data.col=15,*
covar.col=16*)
where covar.col is a factor variable (years in this case 90-91-92-93)).
Then I run the model as follow:
/
model.5 = list(cov.pars=c(1,1),
2010 Nov 22
1
What if geoRglm results showed that a non-spacial model fits?
Hi R-people:
Working in geoRglm, it shows me, according to AIC criterion, that the non-spacial model describes the process in a better way. It's the first time that I'm facing up to.
These are my results:
OP2003Seppos.AICnonsp-OP2003Seppos.AICsp
#[1] -4
(OP2003Seppos.lf0.p<-exp(OP2003Seppos.lf0$beta)/(1+exp(OP2003Seppos.lf0$beta))) #P non spatial
#[1] 0.9717596
2007 Mar 28
0
geoRglm question with covariates
Hi All,
I'm trying to use the geoRglm package to run a poisson spatial glm
on a dataset with several covariates. When I run without covariates I
have no problems.
control1.data.geo <- mcmc.control(S.scale=0.2, thin = 1)
model1.data.geo <- list(cov.pars = c(1,1), beta=c(1), family="poisson")
test1.model1 <- glsm.mcmc(data.geo, model=model1.data.geo,
2004 Nov 18
0
implementing a "loop" using by(x,x$factor,FUN)
Hi,
I'm writing some R code that requires a massive amount of looping and would
ideally like to write it so that it avoid the use of "for" loop ... however I'm
having some trouble.
Very briefly, the basic idea is to implement a binary partitioning algorithm to
determine the optimal cutpoint based on deviance measures obtained from
likelihood estiamtes. This is in the
2006 Jun 28
1
calculating the spacial autocorrelation for poisson data
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060628/2ff7714d/attachment.pl
2008 Aug 12
1
Geodata object border
Sorry, this is probably quite an easy question, but I'm new to R and couldn't
find the answer anywhere.
I'm using geoR and geoRglm, but can't figure out how to get a border in my
geodata object. Does this need to be defined when I'm importing my data, or
afterwards, and how do I go about doing this?
Thanks
--
View this message in context:
2011 Oct 28
0
problem with glsm.krige: trendd and trend l must have similar specifications error
Hello,
I used glsm.mcmc and likfit.glsm to create model. Now I want to predict at different locations, but I can't get glsm.krige to work. I keep getting the error that trend.d and trend.l must have similar specifications. I have tried numerous ways to include the covariates in the glsm.krige model, and I keep getting the same error message. The bolded part is the part that doesn't work.
2008 Aug 15
1
Strange error message from geoR´s likfit () lik. max. func.
ComRades:
I am geeting the error message
Error in ldots[[which(MET)]] : attempt to select less than one element
when I try to fit the geostatistical model with the likfit() function of
geoR.
I have tried with old data for which likfit() successfully maximised the
likelihood in previous versions of geoR, and yet the current version
fails.
I have tried in Windows Vista and Windows XP (I haven't
2005 Dec 13
1
bug in geoR (?)
I've enconuntered this problem with the last cran version of geoR:
> library(geoR)
> day <- rep(1:2, each=5)
> coords <- matrix(rep(runif(10),2), 10, 2)
> data <- rnorm(10)
> data[1] <- NA
> as.geodata(cbind(coords, data, day), realisations=4)
as.geodata: 1 points removed due to NA in the data
Errore in as.geodata(cbind(coords, data, day), realisations = 4) :
2005 Jul 13
3
nlme, MASS and geoRglm for spatial autocorrelation?
Hi.
I'm trying to perform what should be a reasonably basic analysis of some
spatial presence/absence data but am somewhat overwhelmed by the options
available and could do with a helpful pointer. My researches so far
indicate that if my data were normal, I would simply use gls() (in nlme)
and one of the various corSpatial functions (eg. corSpher() to be
analagous to similar analysis in SAS)
2006 Jan 13
1
help with gepRglm::likfit.glsm
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [SMTP:r-help-bounces at stat.math.ethz.ch] On Behalf Of ernesto
> Sent: Friday, January 13, 2006 9:25 AM
> To: Mailing List R
> Subject: [R] help with gepRglm::likfit.glsm
>
> Hi,
>
> I'm exploring likfit.glsm and I need some help. I have to say that I'm
> not an MCMC expert ...
>
2002 Apr 26
2
Can't install packages (PR#1486)
Hello,
I install R under Mandrake Linux 8.2.
R itself work fine, but I had an error to install packages, i.e. fields, geoR
and geoRglm :
$: R CMD INSTALL geoRglm_0.4-3.tar.gz
Installing *source* package `geoRglm' ...
libs
gcc-3.0.1 -I/usr/lib/R/include -I/usr/local/include -mieee-fp
-D__NO_MATH_INLINES -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
-march=i586 -fno-fast-math
2002 Apr 26
2
Can't install packages (PR#1486)
Hello,
I install R under Mandrake Linux 8.2.
R itself work fine, but I had an error to install packages, i.e. fields, geoR
and geoRglm :
$: R CMD INSTALL geoRglm_0.4-3.tar.gz
Installing *source* package `geoRglm' ...
libs
gcc-3.0.1 -I/usr/lib/R/include -I/usr/local/include -mieee-fp
-D__NO_MATH_INLINES -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
-march=i586 -fno-fast-math
2008 Aug 18
1
GeoR model.control - defining covariates at prediction locations
Hi,
Im using geoR and I'm trying to do some predictions, based on an external
trend.
I'm having some problems specifying my model.control, specifically how do I
define my model, and also the source of the covariate data at the prediction
locations?
I am assuming that the covariate data at the prediction locations should be
imported to a geodata object along with the prediction location
2008 Jun 26
0
geoR : Passing arguments to "optim" when using "likfit"]
Mzabalazo Ngwenya wrote:
> Hi everyone !
>
> I'm am trying to fit a kriging model to a set of data. When I just run
> the "likfit" command I can obtain the results. However when I try to
> pass additional arguements to the optimization function "optim" I get
> errors. That is I want to obtain the hessian matrix so matrix
> (hessian=TRUE).
>
2008 Jun 26
0
geoR : Passing arguments to "optim" when using "likfit"
Hi everyone !
I'm am trying to fit a kriging model to a set of data. When I just run the "likfit" command I can obtain the results. However when I try to pass additional arguements to the optimization function "optim" I get errors. That is I want to obtain the hessian matrix so matrix (hessian=TRUE).
Heres a little example( 1-D). Can anyone shed some light? Where am I
2009 Jan 19
0
Trend.spatial function in geoR
I am having difficulty getting the trend.spatial function in geoR to
work properly. After creating a trend.spatial object with a covariate,
I try to add the command into my likfit() function as follows:
trend1.trend.spatial <- trend.spatial("1st", trend1.geodata)
trend1.spatial.EC0.1.reml <- likfit(spatial.geodata,
trend1.trend.spatial, ini.cov.pars = spatial.EC0.1.eyefit,
2013 Apr 04
5
help with kriging interpolation
All,
I am new to using R and know some basics. I wish to use kriging in R to
do the following:
given data Y =f(X1,X2,X3,.....,Xn) --1000+ irregular measured data set.
I would like to be able to get a single value y given sinle input set
(x1,x2,x3,...xn)
A google search on this takes me lierally to the same example on involving
analysis with soil sampling and I cannot figure out how to
2006 Jan 05
1
Memory limitation in GeoR - Windows or R?
Dear Aaron,
I am really a tool user and not a tool maker (actually an ecologist
doing some biostatistics)... so, I take the liberty of sending a copy of
this e-mail to the r-help list where capable computer persons and true
statisticians may provide more relevant information and also to Paulo
Ribeiro and Peter Diggle, the authors of geoR..
I really feel that your huge matrix cannot be
2002 May 13
1
Spatio-temporal analysis of homicide rates
Dear R-listers,
I would like to carry out a very basic descriptive analysis of homicides
rates in Italy, taking into account both the spatial dimension (103
provinces) and the temporal dimension (10 years), but no covariates. In
practice, what I would like to do is to describe spatio-temporal variation
of homicide rates, identifying those combinations of province-year where
the homicide rate