fitted.ics: Fitted Values of an ICS Object

Description Usage Arguments Value Author(s) See Also Examples

Description

Function to compute the fitted values of a ics object.

Usage

1
2
## S4 method for signature 'ics'
fitted(object,index=NULL)

Arguments

object

object of class ics.

index

A vector which defines which components should be used to compute the fitted values. The default NULL uses all components.

Value

Returns a dataframe with the fitted values.

Author(s)

Klaus Nordhausen

See Also

ics-class and ics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    set.seed(123456)
    X1 <- rmvnorm(250, rep(0,8), diag(c(rep(1,6),0.04,0.04)))
    X2 <- rmvnorm(50, c(rep(0,6),2,0), diag(c(rep(1,6),0.04,0.04)))
    X3 <- rmvnorm(200, c(rep(0,7),2), diag(c(rep(1,6),0.04,0.04)))

    X.comps <- rbind(X1,X2,X3)
    A <- matrix(rnorm(64),nrow=8)
    X <- X.comps %*% t(A)

    ics.X.1 <- ics(X)
    fitted(ics.X.1)
    fitted(ics.X.1,index=c(1,2,3,6,7,8))
    
    rm(.Random.seed)


ICS documentation built on May 19, 2017, 4:09 p.m.
Search within the ICS package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.