Closed virgile-baudrot closed 6 years ago
The problem was that the function called in the case of survDataCstExp
was wrongly named plotDoseResponse.survData
. Now the example you provide yells with the proper error message:
> plotDoseResponse(survDate_PRZ_var)
Error in UseMethod("plotDoseResponse") :
pas de méthode pour 'plotDoseResponse' applicable pour un objet de classe "c('survDataVarExp', 'survData', 'tbl_df', 'tbl', 'data.frame')"
Thanks!
Method
plotDoseResponse
is only define for object of classreproData
andsurvFitCstExp
. However, the functionplotDoseResponse
try to do it on an object of classsurvFitVarExp
. Maybe returning a manual error message would be better.The following code return a graph but should return an error message because it is impossible to plot a dose-response when one or more exposure profile are variable: