Learn R Programming

spatstat (version 1.31-3)

coef.slrm: Coefficients of Fitted Spatial Logistic Regression Model

Description

Extracts the coefficients (parameters) from a fitted Spatial Logistic Regression model.

Usage

## S3 method for class 'slrm':
coef(object, ...)

Arguments

object
a fitted spatial logistic regression model. An object of class "slrm".
...
Ignored.

Value

  • Numeric vector of coefficients.

Details

This is a method for coef for fitted spatial logistic regression models (objects of class "slrm", usually obtained from the function slrm).

It extracts the fitted canonical parameters, i.e. the coefficients in the linear predictor of the spatial logistic regression.

See Also

slrm

Examples

Run this code
X <- rpoispp(42)
  fit <- slrm(X ~ x+y)
  coef(fit)

Run the code above in your browser using DataLab