Skip to content
psterzingerPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supplementary material for “Maximum softly penalised likelihood in factor analysis”

Philipp Sterzinger, Ioannis Kosmidis, Irini Moustaki October 9, 2025

Directory structure

The directory code/ contains the Julia scripts that reproduce all the numerical results and figures in the manuscript

Sterzinger P, Kosmidis I and Moustaki I (2025). Maximum softly penalised likelihood in factor analysis. https://arxiv.org/pdf/2510.06465

and the Supplementary Material document fapl-supplementary.pdf.

The directory code/methods/ contains methods that the scripts in code/ use.

The directory results/ will be populated by files that store the numerical results the scripts produce. Due to storage constraints, it is left empty.

The directory figures/ is populated by graphics that the scripts produce.

Julia version and contributed packages

All results are reproducible using Julia version 1.11.7 and the contributed packages

Package Version
CairoMakie 0.12.9
ColorSchemes 3.31.0
DataFrames 1.8.0
Distributed nothing
Distributions 0.25.122
FiniteDiff 2.28.1
ForwardDiff 1.2.1
GeometryBasics 0.4.11
JLD2 0.6.2
Latexify 0.16.10
LaTeXStrings 1.4.0
LinearAlgebra 1.11.0
LineSearches 7.4.0
Optim 1.13.2
PrettyTables 2.4.0
Printf nothing
Random 1.11.0
Statistics 1.11.1

Reproducing the results

Path

All scripts specify the path to the supplementary material path as supp_path. This is currently set to abspath(joinpath(@__DIR__, "..")) assuming that the working directory for Julia is set to the code folder of the current git repository. If this is not the case for your setup, you should set supp_path appropriately.

Parallel computation

In each Julia scripts relying on parallel computation, num_workers (currently set to 8) sets the number of cores to use.

Parallel computing in the Julia scripts uses the Julia packages Distributed. See Parallel Computing in Julia’s documentation for more details.

Details

The following table lists the R and Julia scripts that need to be executed in order to reproduce the results. The table also lists the outputs from each script, and their label if they are shown in the main text or the Supplementary Material document. Some of the outputs are intermediate results, so the scripts should be executed in the order shown.

Script Output Label
01-1-factor-model-sim.jl 01-1-fapl-sim-*.jld2
01-2-aggregate-sim.jl 01-2-full-sim.jld2
01-3-perc-HW-plot.jl perc-HW.pdf Figure 1
02-violin-plots.jl violin-q3.pdf Figure 2
violin-q5.pdf Figure S1
violin-q8.pdf Figure S2
03-1-model-select-sim.jl 03-1-fapl-MS-sim-*.jld2
03-2-aggregate-model-select-sim.jl 03-2-full-sim-model-select.jld2
03-3-model-select-plot.jl model-select-perc-correct.pdf Figure 3
04-model-select-table.jl Table 2
05-numerical-examples.jl Table 3
Table S1
Table S2
Table S3

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages