Hi everyone,
I am trying to find a way to calculate an adjacency matrix from a polygon
shapefile to make a CAR model in winbugs, but I would like to vary the order
of neihborhood. I used the the spdep package to create an adjacency matrix
(in list format) of order 2 and it works
I forgot to mention that I tried with "merge" and "join" (package analogue)
without success...
Julien
Selon Julien Beguin , 31.07.2009:
> Dear all,
>
> I am trying to merge two data frames based on a common column but for this
> common column both data frame
d01)
# data frame 2
Id2 <- c(1,2,3,3)
Habit2 <- c('a','b','d','d')
Id02 <- paste(Id2, Habit2,sep=".")
Area <- c(10,2,3,5)
data2 <- data.frame(cbind(Id02, Area))
# result that I would like
Area2 <- c(10, 0, 0, 2, 0, 0, 3, 5, 0)
result &
t.poisson)
summary(fit.poisson)
fit.binomial<-lmer(y.binary~x1*x2 + (1|z1/z2/x1), data=data.test,
family=binomial(link = "logit"))
anova(fit.binomial)
summary(fit.binomial)
-----------
Thank's in advance for you amsw
regards,
Julien
--
Julien Beguin
Etudiant au doctorat
Faculté de Foresterie et de Géomatique
Université Laval, local 2113
2405 rue de la Terrasse, G1V 0A6 Québec (Qc)
Tel: (418) 656-2131 poste 2620
http://www.cen.ulaval.ca/anticosti/jbeguin.html
quot; (for No and Yes) and appear in my "per default" legend that is located
in the buttomright of my 3x3 scatterplot. I would like to replace N by a list
of character: "unfenced" and Y by "fenced", as well as moving the legend in
another place in my graphic... is so
6 matches
Mail list logo