-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
For example this code:
library(conflicted)
library(geepack)
library(PairedData)
library(Matrix)
timeorder <- rep(1:5, 6)
tvar <- timeorder + rnorm(length(timeorder))
idvar <- rep(1:6, each=5)
uuu <- rep(rnorm(6), each=5)
yvar <- 1 + 2*tvar + uuu + rnorm(length(tvar))
simdat <- data.frame(idvar, timeorder, tvar, yvar)
mod1 <- geeglm(yvar~tvar, id=idvar, data=simdat, corstr="ar1")
summary(mod1)
output:
Error: [conflicted] `summary` found in 2 packages.
Either pick the one you want with `::`
* Matrix::summary
* PairedData::summary
Or declare a preference with `conflict_prefer()`
* conflict_prefer("summary", "Matrix")
* conflict_prefer("summary", "PairedData")
In fact there are 3 sammary functions here: base::summary, Matrix::summary and PairedData::summary. But only Matrix::summary and PairedData::summary are reported. Is it bug or there is any solution for it?
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior