pistacliffcho / icenReg_devel

Code for icenReg plus testData
4 stars 0 forks source link

Issues with predict/getFitEsts #6

Closed pistacliffcho closed 4 years ago

pistacliffcho commented 5 years ago

Minimal Working Example:

library(icenReg)
# Fitting semi-parametric model
data(miceData)
fit = ic_sp(cbind(l,u) ~ grp, data = miceData)

new_data = data.frame(grp = c("ce", "ge"))
rownames(new_data) = c("ce_group", "ge_group")

# Problems:
predict(fit)
getFitEsts(fit, new_data[1,], p = c(.25, .5, .75))
pistacliffcho commented 4 years ago

Fixed and pushed to CRAN