dot-mctp: Computes the MCTP for clustered data

.mctpR Documentation

Computes the MCTP for clustered data

Description

Computes the MCTP for clustered data

Usage

.mctp(
  data,
  p_null = 0.5,
  cont,
  normal = FALSE,
  theta = NULL,
  psi = NULL,
  alpha,
  type = NULL
)

Arguments

data

The data, provided as a list of lists

p_null

A vector or scalar of relative effects under the null hypothesis, defaults to 0.5

cont

A contrast matrix for the relative effects

normal

Logical, whether normal approximation should be used or not, defaults to FALSE

theta

A Vector for the group weights, defaults to unweighted estimator

psi

A list of vectors with the cluster weights, defaults to unweighted estimator

alpha

The significance level, defaults to 0.05

type

A string indicating whether weighted or unweighted estimator should be used. Only if psi is not provided

Value

A list containing the value of the test statistic, the degrees of freedom and the test decision


spruenke/rankCluster documentation built on June 16, 2022, 9:47 a.m.