row.names.estimate {decisionSupport}R Documentation

Get and set attributes of an estimate object.

Description

row.names.estimate returns the variable names of an estimate object which is identical to row.names(x$marginal).

names.estimate returns the column names of an estimate object which is identical to names(x$marginal).

corMat.estimate returns the full correlation matrix of an estimate object.

'corMat<-.estimate' replaces the correlation matrix of an estimate object.

Usage

## S3 method for class 'estimate'
row.names(x)

## S3 method for class 'estimate'
names(x)

## S3 method for class 'estimate'
corMat(rho)

## S3 replacement method for class 'estimate'
corMat(x) <- value

Arguments

x

an estimate object.

rho

an estimate object.

value

numeric matrix: new correlation matrix. For details cf. estimate.

See Also

estimate, names.estimate, corMat.estimate, corMat

corMat<-

Examples

 # Read the joint estimate information for the variables "sales", "productprice" and 
 # "costprice" from file:
 ## Get the path to the file with the marginal information:
 marginalFilePath=system.file("extdata","profit-4.csv",package="decisionSupport")
 ## Read marginal and correlation file into an estimate:
 parameterEstimate<-estimate_read_csv(fileName=marginalFilePath)
 print(parameterEstimate)
 ## Print the names of the variables of this estimate
 print(row.names(parameterEstimate))
 ## Print the names of the columns of this estimate
  print(names(parameterEstimate))
 ## Print the full correlation matrix of this estimate
  print(corMat(parameterEstimate))

[Package decisionSupport version 1.114 Index]