taufun {HeterFunctionalData}R Documentation

An intermediate function to calculate the partial sums

Description

This function is internally used to calculate the partial sums which will then be used in calculating the asymptotic variances of the test statistics in Heter.test()

Usage

taufun(u, ranks, d1, d2, d3, a, b, mn, mcon, coln)

Arguments

u

a vector

ranks

a vector corresponds to either the fourth column of data or rank of the observations.

d1

a vector corresponds to the first column of data in the long format.

d2

a vector corresponds to the second column of data in the long format.

d3

a vector corresponds to the third column of data in the long format.

a

The number of treatments.

b

The number of time points or repeated measurements per subject.

mn

The vector of sample sizes in treatments.

mcon

a vector corresponds to $b^h$ in Theorem 3.2 of Wand and Akritas (2010a)

coln

takes value 4 or 5. Value 4 is for the tests based on original data and value 5 is for the tests based on ranks.

Value

Asymptotic variances to be used in Heter.test().


[Package HeterFunctionalData version 0.1.0 Index]