Skip to content

vlt.stats.power.power2corrcoefDemo

  POWER2CORRCOEFDEMO - Demonstrates the vlt.stats.power.power2corrcoef function

    POWER2CORRCOEFDEMO(..., 'NAME', VALUE)

    Calculates and plots the power of a correlation test for a range of
    correlation coefficients using simulated data.

    Optional Name-Value Pairs:
    - 'n_samples' (integer > 0): Number of data points in each sample.
      Default is 30.
    - 'correlations' (vector): Range of correlations to test.
      Default is -1:0.1:1.
    - 'num_simulations' (integer > 0): Number of simulations per correlation value.
      Default is 500.

    See also: VLT.STATS.POWER.POWER2CORRCOEF