*! version 1.0 21 Oct 2024

Title

nca_power -- NCA power

Syntax

nca_power
[,
options]

Optional
n(numlist integer >0) number of observations to be simulated. The default is 20 50 100.

rep(#) the number of simulated datasets to be created for each value of n. The default value is 100.

effect(#) the postulated effect size. The default values is 0.1.

slope(#) The postulated slope of the ceiling line. The default values is 1.

ceiling(string) Ceiling method to be used in each simulation. The allowed ceilings are ce_fdh, cr_fdh, ce_vrs and cr_vrs. The default are ce_fdh and cr_fdh.

xdistribution(string) The distribution to be used to simulate the conditions.

ydistribution(string) The distribution to be used to simulate the outcomes.

xmean(#) Mean of the condition variables to be generated.

xsd(#) Standard deviation of the condition variables to be generated.

ymean(#) Mean of the outcome variable to be generated.

ysd(#) Standard deviation of the outcome variable to be generated.

corner(#) Define which corner should be empty.

testrep(#) The number of permutations to be used in the approximate premutation test. The default value is 200.

significance(#) specifies the significance level to be considered during for the the approximate premutation test. The default is 0.01*(100 - $S_level), where $S_level is the default confidence level for confidence intervals for all commands that report confidence intervals (see also help set level and macro dir).

Description

Options

Main

n(numlist integer >0) number of observations to be simulated. The default is 20 50 100.

rep(#) the number of simulated datasets to be created for each value of n. The default value is 100.

effect(#) the postulated effect size. The default values is 0.1.

slope(#) The postulated slope of the ceiling line. The default values is 1.

ceiling(string) Ceiling method to be used in each simulation. The allowed ceilings are ce_fdh, cr_fdh, ce_vrs and cr_vrs. The default are ce_fdh and cr_fdh.

xdistribution(string) The distribution to be used to simulate the conditions.

ydistribution(string) The distribution to be used to simulate the outcomes.

xmean(#) Mean of the condition variables to be generated.

xsd(#) Standard deviation of the condition variables to be generated.

ymean(#) Mean of the outcome variable to be generated.

ysd(#) Standard deviation of the outcome variable to be generated.

corner(#) Define which corner should be empty.

testrep(#) The number of permutations to be used in the approximate premutation test. The default value is 200.

significance(#) specifies the significance level to be considered during for the the approximate premutation test. The default is 0.01*(100 - $S_level), where $S_level is the default confidence level for confidence intervals for all commands that report confidence intervals (see also help set level and macro dir).

Examples

nca_power, n(100 200 300) rep(100)

Author

Daniele Spinelli

Department of Statistics and Quantitative Methods

University of Milano-Bicocca

Milan, Italy

daniele.spinelli@unimib.it