在运行res<-mr(mydata)时出错error in density.default(BetaIV. in, weights=weights, bw=h), non_infinite bw是什么问题呢?
你把报错的那一段代码发过来我看看