The flow shows four steps for analysis. Step 1 loads daily dataset and defines parameters with target variable C P U and financial Islamic asset S U K U K index. Step 2 extracts and prepares data, handles missing values, and constructs a two column dataset combining C P U and S U K U K index. Step 3 performs wavelet coherence analysis using W T C function, selects the Morlet wavelet, and evaluates significance. Step 4 plots and visualizes results, defines output parameters, customizes plots, and exports output as a P N G file.
Algorithm 2 – wavelet coherence analysis between CPU and sukuk indices