prepareData_residsVSxy: Data preparation for 'plot_residsVSxy'

Description Usage Arguments

View source: R/residual_plots.R

Description

Prepare the data set containing the mean residuals per measurement location for the following call of plot_residsVSxy. Note: This function can only be used for situations, where measurements took place at a set of fixed locations in 2D, which all have multiple measurements. Situations where each observations has a unique metric value on the x and/or y axis are not supported. Neither are other spatial dimensions than 2D.

Usage

1
2
prepareData_residsVSxy(model, data, yvar, xCoord_var, yCoord_var,
  type = "response", ...)

Arguments

model

Function-on-scalar model fitted with pffr

data

Data for which the residuals of the model should be looked at

yvar

name of the response variable in model

xCoord_var, yCoord_var

name of the variables containing location information for the x and y axis of the measurements

type

See residuals.gam

...

Additional arguments passed to predict.pffr


bauer-alex/FoSIntro documentation built on Feb. 11, 2022, 8:33 a.m.