CRC Wiki
CRC Wiki
Log in

RCOSA

From CRC Wiki

General Description

COSA(tm) is an implementation of the COSA method for clustering objects (observations) on subsets of attributes (variables) described in Clustering objects on subsets of attributes. RCOSA is an interface for using COSA(tm) within the R statistical package.

Basic Usage

A basic RCOSA submission script is shown below:

#!/bin/csh
#$ -M <your_netid>@nd.edu
#$ -m abe

module load rcosa

Rscript R_script.R

Alternatively, you may change the executing command line to:

R CMD BATCH R_script.R R_script.Rout

Note: The latter approach is considered outdated, and no longer preferred.

Important Information

To call COSA within an R script, The following line needs to be added:

 platform="linux"

To use the original Fortran binary from COSA developers the following line needs to be added as well:

 source("/opt/crc/rcosa/cosa2org.q")

The following line should be used to call a modified version of COSA Fortran binary:

 source("/opt/crc/rcosa/cosa2mod1.q")  

Further Information

See the official website: http://www-stat.stanford.edu/~jhf/COSA.html