I created a R package that fits a statistical model, such as a class classification model. I'd like to write my own approach summary. In the style of summary.lm, create a class.
I'm stumped as to how to create such a summary output. My model of class class is a list that includes elements such as pvalue = 0.05. To print the p-value, do I use cat in summary.class? What is the best way to format many outputs of this type in a table?
There appears to be no print or cat commands in summary.lm.
function = summary.class (obj,...)
cat(obj$pvalue) cat(obj$pvalue) cat(obj$pvalue) cat(obj$