0

I am confused about marks and covariates in point process. I am trying to create a model of a marked point pattern with few covariates in R by using spatstat, but I am not sure the relationship between marks and covariates. Could anyone help me?

Thanks.

---- update I have a given point pattern about populations of settlements in given location, and few covariates such as soil fertility, annual rainfall and so on. And I would like to describe the distribution of settlements.

  • Your question is a bit vague. The title suggests it's related to covariance while the text talks about covariates. Could you please be more specific? Which type of marks do you have? What are the covariance? What have you read about the subject so far? – Ege Rubak Apr 27 '15 at 10:13
  • @EgeRubak I updates my specification. Is it clear now? – user3108902 Apr 27 '15 at 10:17

1 Answers1

0

For point processes the distinction between marks and covariates are:

  • Marks are values attached to each point (settlement) and often the mark is not meaningful at other locations.

  • Covariates are conceptually meaningful/available throughout the entire survey region (observation window).

Mark values can in principle be anything, but basically only two types are supported in spatstat at the time of writing: 1) marks with a numerical value and 2) categorical (factor-valued) marks. In spatstat there is a strong emphasis on the latter, which are referred to as 'multitype' patterns. For multitype patterns you can build models with the spatstat function ppm, but currently there are no modelling tools for patterns with numerical marks.

To analyse your data with spatstat you probably have to either discard the population size information or use cut.ppp to divide the settlements into groups like "big", "medium", and "small" or what ever makes sense in your study, and then proceed with the analysis of this multitype pattern.

Update based on comments: Assume we have a multitype point pattern X (of class ppp) and two covariate images im1 and im2 (of class im). Then a Poisson model with the same covariate effect for each level of the mark is:

ppm(X ~ marks + im1 + im2)

A model allowing for "interaction", i.e., different effects of the covariates for each level of the factor is:

ppm(X ~ marks * im1 + marks * im2)

For both models the interpretation of the model depend on the contrasts in force (by default treatment contrasts). It is exactly like using lm or glm.

Ege Rubak
  • 4,347
  • 1
  • 10
  • 18
  • Thanks. Besides, I would like to develop a model of marked point pattern with covariates (without interaction between points), and currently the covariates are im pixels. Is it ok to implement it by using ppm(ppp, ~marks+covariate1+covariate2, covariates=list(covariate1 = im1, covatiate2=im2))? – user3108902 Apr 27 '15 at 14:21
  • With newer versions of spatstat the syntax is simply: `ppm(ppp ~ marks + im1 + im2)` where `ppp`, `im1` and `im2` are objects in your global enviroment (btw. I don't recommend to use `ppp` as the name of a pattern since it is the name of the class). This model assumes the same covariate effect (same slope in linear regression terminology) for each mark value which may or may not be resonable. – Ege Rubak Apr 27 '15 at 15:03
  • You are welcome. To make a model with different effect ("slope") for each mark type do: `ppm(ppp ~ marks*im1 + marks*im2)` – Ege Rubak Apr 27 '15 at 15:08
  • Is ppm(ppp ~ marks*im1 + marks*im2) an interaction version? Well, if the marks is a categorical, is it changed to numerical value auto? – user3108902 Apr 27 '15 at 15:58