-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17eb10f
commit 09ecbcf
Showing
10 changed files
with
190 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
Package: modeltools | ||
Title: Tools and Classes for Statistical Models | ||
Date: $Date: 2006-11-03 11:17:22 +0100 (Fri, 03 Nov 2006) $ | ||
Version: 0.2-9 | ||
Author: Torsten Hothorn, Friedrich Leisch, Achim Zeileis | ||
Date: $Date: 2007-01-11 18:42:45 +0100 (Thu, 11 Jan 2007) $ | ||
Version: 0.2-10 | ||
Author: Torsten Hothorn, Friedrich Leisch, Achim Zeileis | ||
Maintainer: Torsten Hothorn <Torsten.Hothorn@R-project.org> | ||
Description: A collection of tools to deal with statistical models. | ||
The functionality is experimental and the user interface is likely to | ||
change in the future. The documentation is rather terse, but packages `coin' | ||
and `party' have some working examples. However, if you find the | ||
implemented ideas interesting we would be very interested in a discussion | ||
of this proposal. Contributions are more than welcome! | ||
Depends: R (>= 2.0.1), methods, stats | ||
Depends: stats, stats4 | ||
Imports: methods | ||
SaveImage: yes | ||
License: GPL | ||
Packaged: Fri Nov 3 13:01:23 2006; hothorn | ||
Packaged: Thu Jan 11 18:53:50 2007; leisch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright (C) 2006 Torsten Hothorn, Friedrich Leisch | ||
# $Id: Generics.R 3126 2006-11-06 16:03:12Z hothorn $ | ||
# | ||
|
||
|
||
|
||
## generics used in flexmix and flexclust which may also be useful in | ||
## other packages | ||
|
||
setGeneric("ICL", function(object, ...) standardGeneric("ICL")) | ||
|
||
setGeneric("KLdiv", function(object, ...) standardGeneric("KLdiv")) | ||
|
||
setGeneric("cluster", function(object, ...) standardGeneric("cluster")) | ||
|
||
setGeneric("getModel", function(object, ...) standardGeneric("getModel")) | ||
|
||
setGeneric("parameters", function(object, ...) standardGeneric("parameters")) | ||
|
||
setGeneric("posterior", function(object, newdata, ...) standardGeneric("posterior")) | ||
|
||
setGeneric("prior", function(object, ...) standardGeneric("prior")) | ||
|
||
setGeneric("refit", function(object, ...) standardGeneric("refit")) | ||
|
||
###********************************************************** | ||
|
||
setGeneric("info", | ||
function(object, which, ...) standardGeneric("info")) | ||
|
||
setMethod("info", signature(object="ANY", which="missing"), | ||
function(object, which, ...) | ||
{ | ||
info(object, which="help") | ||
}) | ||
|
||
infoCheck <- function(object, which, ...) | ||
{ | ||
which %in% info(object, "help") | ||
} | ||
|
||
|
||
|
||
###********************************************************** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
\name{Generics} | ||
\alias{ICL} | ||
\alias{KLdiv} | ||
\alias{cluster} | ||
\alias{getModel} | ||
\alias{parameters} | ||
\alias{posterior} | ||
\alias{prior} | ||
\alias{refit} | ||
\title{Generic Utility Functions} | ||
\description{ | ||
A collection of standard generic functions for which other packages | ||
provide methods. | ||
} | ||
\usage{ | ||
ICL(object, \dots) | ||
KLdiv(object, \dots) | ||
cluster(object, \dots) | ||
getModel(object, \dots) | ||
parameters(object, \dots) | ||
posterior(object, newdata, \dots) | ||
prior(object, \dots) | ||
refit(object, \dots) | ||
} | ||
\arguments{ | ||
\item{object}{S4 classed object.} | ||
\item{newdata}{Optional new data.} | ||
\item{\dots}{Some methods for these generic function may take | ||
additional, optional arguments.} | ||
} | ||
\details{ | ||
\describe{ | ||
\item{ICL:}{Integrated Completed Likelihood criterion for model | ||
selection.} | ||
\item{KLdiv:}{Kullback-Leibler divergence.} | ||
\item{cluster:}{Extract cluster membership information.} | ||
\item{getModel:}{Get single model from a collection of models.} | ||
\item{parameters:}{Get parameters of a model (similar to but more | ||
general than \code{\link{coefficients}}).} | ||
\item{posterior:}{Get posterior probabilities from a model or | ||
compute posteriors for new data.} | ||
\item{prior:}{Get prior probabilities from a model.} | ||
\item{refit:}{Refit a model (usually to obtain additional | ||
information that was not computed or stored during the initial | ||
fitting process).} | ||
} | ||
} | ||
\keyword{methods} | ||
\author{Friedrich Leisch} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
% | ||
% Copyright (C) 2005 Friedrich Leisch | ||
% $Id: info.Rd 1849 2005-10-10 06:15:57Z leisch $ | ||
% | ||
\name{info} | ||
\alias{info} | ||
\alias{infoCheck} | ||
\alias{info,ANY,missing-method} | ||
\title{Get Information on Fitted Objects} | ||
\description{ | ||
Returns descriptive information about fitted objects.} | ||
} | ||
\usage{ | ||
info(object, which, ...) | ||
\S4method{info}{ANY,missing}(object, which, ...) | ||
infoCheck(object, which, ...) | ||
} | ||
\arguments{ | ||
\item{object}{fitted object.} | ||
|
||
\item{which}{which information to get. Use \code{which="help"} to list | ||
available information.} | ||
|
||
\item{\dots}{passed to methods.} | ||
} | ||
\details{ | ||
Function \code{info} can be used to access slots of fitted | ||
objects in a portable way. | ||
|
||
Function \code{infoCheck} returns a logical value that is \code{TRUE} | ||
if the requested information can be computed from the \code{object}. | ||
} | ||
\author{Friedrich Leisch} | ||
\keyword{methods} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters