Learn R Programming

GRelevance (version 1.0)

Weight: Basic description

Description

Given the sampless, this function returns the mean and weight matrix.

Usage

Weight(G)

Value

the mean and weight matrix

Arguments

G

a list of all groups

Examples

Run this code
G=list()
set.seed(1)
n1=20;n2=40
N=n1+n2;
G[[1]]=c(1:n1);G[[2]]=c((n1+1):(n1+n2));
Weight(G)

Run the code above in your browser using DataLab