data(prostate);
fit = joinpoint(~Year, data=prostate, numJPoints = 0);
pred1 = predict(fit);
pred2 = predict(fit, years = 1978, intervals = 5);
pred3 = predict(fit, years = 1976:1980, intervals = c(2, 3, 5));
Run the code above in your browser using DataLab