extract.model {AgroReg} | R Documentation |
Analysis: Extract models
Description
This function allows extracting the model (type="model") or residuals (type="resids"). The model class depends on the function and can be (lm, drm or nls). This function also allows you to perform graphical analysis of residuals (type="residplot"), graphical analysis of standardized residuals (type="stdresidplot"), graph of theoretical quantiles (type="qqplot").
Usage
extract.model(model, type = "model")
Arguments
model |
Object returned from an analysis function |
type |
output type |
Value
Returns an object of class drm, lm or nls (type="model"), or vector of residuals (type="resids"), or graph of the residuals (type="residplot", type="stdresidplot", type=" qqplot").
Examples
data("aristolochia")
attach(aristolochia)
a=linear.linear(trat,resp,point = "mean")
extract.model(a,type = "qqplot")
[Package AgroReg version 1.2.10 Index]