[R] Create Model Object (setClass?setMethod?)

casperyc casperyc at hotmail.co.uk
Tue Apr 3 18:54:23 CEST 2012


Hi all,

I have a self written likelihood as a model and functions to optimize and
get fitted values, confidence intervals ect.

I wonder if there is a way to define a 'class', or a 'model' (or a certain
object)? so that I can use 'summary' to produce a summary like it does for a
lm object.

Also, it should be able to use 'predict' and 'plot' and other various
generic functions.

I am reading bits and pieces on the internet on 'setClass', 'setMethod'.  Am
I looking for the correct thing? Is there any up to date references that I
can get help? I need some examples to get started with.

Thanks!

Casper 

-----
###################################################
PhD candidate in Statistics
School of Mathematics, Statistics and Actuarial Science, University of Kent
###################################################

--
View this message in context: http://r.789695.n4.nabble.com/Create-Model-Object-setClass-setMethod-tp4529473p4529473.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list