mctp | R Documentation |
Computes the MCTP for clustered data
mctp( data, p_null = 0.5, cont, normal = FALSE, theta = NULL, psi = NULL, alpha, type = NULL )
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 |
A list containing the value of the test statistic, the degrees of freedom, the p-values and the test decision
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.