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: spm_dem_initialise.m
    path of file: ./repos/malini/Codes/deconvolution - model/spm8/toolbox/DEM
    
    the code of the file until where you have to start completion: function [DEM] = spm_dem_initialise(DEM)
% Initialises parameter estimates for DEM structures
% FORMAT [DEM] = spm_dem_initialise(DEM)
%
% DEM.M  - hierarchical model
% DEM.Y  - inputs or data
% DEM.U  - prior expectation of causes
% DEM.X  - observation confounds
%__________________________________________________________________________


% check model class
% -------------------------------------------------------------------------
switch lower(DEM.class)


    
function [DEM] = spm_dem_initialise(DEM)
% Initialises parameter estimates for DEM structures
% FORMAT [DEM] = spm_dem_initialise(DEM)
%
% DEM.M  - hierarchical model
% DEM.Y  - inputs or data
% DEM.U  - prior expectation of causes
% DEM.X  - observation confounds
%__________________________________________________________________________


% check model class
% -------------------------------------------------------------------------
switch lower(DEM.class)

    % set initial parameter estimates to eigenvectors of data
    % ---------------------------------------------------------------------
    case{'principal component analysis','pca','svd', ...
         'factor analysis','fa','independ