eu {HeterFunctionalData}R Documentation

A function to calaculate cell residues.

Description

This function calcualtes the residual $x_ijk-barx_ij.$ for the kth replication from the ith group at jth time point.

Usage

eu(x, coln, Rij, Rik)

Arguments

x

the data matrix in long format, whose first column gives the index i, 2nd columns given the index j, 3rd column gives the index k, and the last column gives the observation $x_ijk$. For given i and j, $x_ijk, k=1, ..., n_ij$ are assumed to be i.i.d. from the same distribution.

coln

takes value 4 or 5. If coln=4, the calculation uses original data; if coln=5, the calculation uses rank. The default value for coln is 5.

Rij

is the mean of all observations in ith treatment at jth measurement calculated in other functions

Rik

is the mean for the kth subject in ith treatment calculated in other functions

Value

The residual to be used in Heter.test()


[Package HeterFunctionalData version 0.1.0 Index]