Learn R Programming

SharpeR (version 0.1306)

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

Description

Checks if an object is in the class 'sropt'

Usage

is.sropt(x)

Arguments

x
an object of some kind.

Value

  • a boolean.

Details

To satisfy the minimum requirements of an S3 class.

See Also

sropt

Other sropt: as.sropt, as.sropt.default, as.sropt.xts, confint.sr, confint.sropt, dsropt, power.sropt_test, reannualize, reannualize.sr, reannualize.sropt, 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