Learn R Programming

SharpeR (version 1.4.0)

is.sropt: Is this in the "sropt" class?

Description

Checks if an object is in the class 'sropt'

Usage

is.sropt(x)

Value

a boolean.

Arguments

x

an object of some kind.

Author

Steven E. Pav shabbychef@gmail.com

Details

To satisfy the minimum requirements of an S3 class.

See Also

sropt

Other sropt: as.sropt(), confint.sr(), dsropt(), pco_sropt(), power.sropt_test(), reannualize(), sropt, sropt_test()

Examples

Run this code
nfac <- 5
nyr <- 10
ope <- 253
# simulations with no covariance structure.
# under the null:
set.seed(as.integer(charToRaw("be determinstic")))
Returns <- matrix(rnorm(ope*nyr*nfac,mean=0,sd=0.0125),ncol=nfac)
asro <- as.sropt(Returns,drag=0,ope=ope)
is.sropt(asro)

Run the code above in your browser using DataLab