Learn R Programming

IndexWizard (version 0.2.1.0)

summary.SelInd: Function to summarize the content of a SelInd object.

Description

Function to summarize the content of a SelInd object.

Usage

# S3 method for SelInd
summary(object, ...)

Value

No return value, only prints a summary of the SelInd object.

Arguments

object

An object of class SelInd

...

does nothing, only for compatibility with the generic function

Examples

Run this code
tn <- c("RZM", "RZN", "RZEo")
G <- matrix(
    c(1.0,0.13,0.13,
    0.13,1.0,0.23,
    0.13,0.23,1.0),
    3, 3, dimnames = list(tn,tn)
    ) * 144
w <- c(0.7, 0.3, 0)
names(w) <- tn
r2 <- c(0.743, 0.673)
names(r2) <- tn[1:2]
res <- SelInd(
  w = w,
  G = G,
  r2 = r2
)
summary(res)

Run the code above in your browser using DataLab