You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ft_sourcestatistics.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/external/fieldtrip
    
    the code of the file until where you have to start completion: function [stat] = ft_sourcestatistics(cfg, varargin)

% FT_SOURCESTATISTICS computes the probability for a given null-hypothesis using
% a parametric statistical test or using a non-parametric randomization test.
% 
% Use as
%   [stat] = ft_sourcestatistics(cfg, source1, source2, ...)
% where the input data is the result from FT_SOURCEANALYSIS, FT_SOURCEDESCRIPTIVES
% o
    
function
    error('This cfg.method option is deprecated');
    stat = sourcestatistics_parametric(cfg, varargin{:});
  elseif strcmp(cfg.method, 'randomization')
    % use the source-specific statistical subfunction
    error('This cfg.method option is deprecated');
    stat = sourcestatistics_randomization(cfg, varargin{:});
  elseif strcmp(cfg.method, 'randcluster')
    % use the source-specific statistical subfunction
    error('This cfg.method option is deprecated');
    stat = sourcestatistics_randcluster(cfg, varargin{:});
  else
    [stat, cfg] = statistics_wrapper(cfg, varargin{:});
  end