Description Usage Arguments Details Value Author(s) See Also Examples
Takes in actual, predicted linear response and quantile value, and returns average actual and predicted response in each quantile
1 | actvspred(y, yhat, n)
|
y |
actual linear response |
yhat |
predicted linear response |
n |
quantiles to be created for comparison |
actvspred function divides the data into n (given as input by the user)
quantiles and computes mean of y and yhat for each quantile. All
NA's in n, y and yhat are removed for calculation.
The function also plots a line chart of average actual response and average predicted
response over n quantiles. This plot can be used to visualize how close both
the lines are.
a data.frame with average actual and predicted response in each quantile
Akash Jain
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.