plot_gof_of_lm: plot goodness of fit for linear model used to estimate...

View source: R/plot_gof_of_lm.R

plot_gof_of_lmR Documentation

plot goodness of fit for linear model used to estimate parameter functions

Description

This function plots the R^2 values of the robust or ordinary linear regression used to estimate survival.

Usage

plot_gof_of_lm(
  mark_recapture_object,
  pdf = FALSE,
  xlb = NULL,
  xub = NULL,
  ylb = NULL,
  yub = NULL,
  draw_boundaries = TRUE,
  no_ci = FALSE,
  profile_of_parameter = NULL
)

Arguments

mark_recapture_object

object of class mark_recapture_object (see mark_recapture_object())

pdf

logical, saves image as pdf-file if TRUE. Defaults to FALSE.

xlb

numeric, lower bound of x. Defaults to NULL.

xub

numeric, upper bound of x. Defaults to NULL.

ylb

numeric, lower bound of y. Defaults to NULL.

yub

numeric, upper bound of y. Defaults to NULL.

draw_boundaries

logical, country boundaries will be drawn, if TRUE. Defaults to TRUE.

no_ci

logical. Defines if bootstrap confidence interval should be suppressed in plot despite its availability. Defaults to FALSE.

profile_of_parameter

sf-object containing the information of the profile line, along which the values of a parameter can be plotted including the bootstrap confidence interval. If this information is given, the profile line will be plotted

Value

matrix of dimension res*res with R^2-values for the linear model in every point.

Examples

plot_gof_of_lm(mro1D)

SaskiaSchirmer/CONSURE documentation built on Sept. 3, 2023, 8:52 a.m.