sampleResids {BIGL}R Documentation

Sample residuals according to a new model

Description

Sample residuals according to a new model

Usage

sampleResids(means, sampling_errors, method, rescaleResids, ...)

Arguments

means

a vector of means

sampling_errors

Sampling vector to resample errors from. Used only if error is 4 and is passed as argument to generateData. If sampling_errors = NULL (default), mean residuals at off-axis points between observed and predicted response are taken.

method

What assumption should be used for the variance of on- and off-axis points. This argument can take one of the values from c("equal", "model", "unequal"). With the value "equal" as the default. "equal" assumes that both on- and off-axis points have the same variance, "unequal" estimates a different parameter for on- and off-axis points and "model" predicts variance based on the average effect of an off-axis point. If no transformations are used the "model" method is recommended. If transformations are used, only the "equal" method can be chosen.

rescaleResids

a boolean indicating whether to rescale residuals, or else normality of the residuals is assumed.

...

passed on to predictVar

Value

sampled residuals


[Package BIGL version 1.9.2 Index]