R/drmLOFls.R

"drmLOFls" <- function()
{
    ## Defining lack-of-fit/goodness-of-fit tests
    anovaTest <- function(formula, ds)
    {
        anovaFit <- lm(formula, data = ds)
        if (df.residual(anovaFit) > 0)
        {
            return(list(test = "F", anovaFit = anovaFit))
        } else {
            return(NULL)
        }
    }

    gofTest <- NULL

    return(list(anovaTest = anovaTest, gofTest = gofTest))
}

Try the drc package in your browser

Any scripts or data that you put into this service are public.

drc documentation built on May 1, 2019, 8:43 p.m.