Learn R Programming

ipdmeta (version 1.1)

cluster.subvector.matrix: Construct matrix from grouped vector

Description

Given a matrix organized by effect from some 1 to n.groups clusters, returns a matrix with each row corresponding to a cluster.

Usage

cluster.subvector.matrix(b,n.groups)

Arguments

b
Vector of clustered values stacked by effect, within each effect ordered form 1 to n.groups groups.
n.groups
Number of clusters

Value

  • Matrix with row a cluster and column 1 to the number of effects.

Examples

Run this code
#CONSIDER 10 GROUPS WITH BIVARIATE FRAILTY 

frailties <- 1:20
cluster.subvector.matrix(frailties,10)

Run the code above in your browser using DataLab