search for: runregression

Displaying 1 result from an estimated 1 matches for "runregression".

2012 Jan 10
1
importing S3 methods with importFrom
...in my NAMESPACE: importFrom(lmtest, lrtest) However, this fails R CMD check in the examples: Error in UseMethod("lrtest") : no applicable method for 'lrtest' applied to an object of class "c('glm', 'lm')" Calls: assocTestRegression ... append -> RunRegression -> append -> unlist -> lrtest Relevant line of code in assocTestRegression is tmp <- append(tmp, unlist(lrtest(mod, mod0))[c(8,10)]) where mod and mod0 are both results of the glm() function. If I instead import the entire package in my NAMESPACE: import(lmtest) The example runs wi...