okasag / orf

orf: R package
12 stars 1 forks source link

export predict_honest #1

Closed ellenxtan closed 3 years ago

ellenxtan commented 3 years ago

Hi! Thank you for your great package. I was wondering if you could export the predict_honest()? I could find it in the R documentation but could not use it alone. Thanks!

okasag commented 3 years ago

Hi @ellenxtan and thanks for your interest in the package!

The predict_honest() function is not exported directly as this is controlled by the honesty argument within the main orf() function. As such, if you wish to get honest predictions, setting honesty=TRUE will do the trick:

orf_honest <- predict(orf(X, Y, honesty = TRUE))$predictions

Hope this helps!