CosmoMC: Combine two SN likelihoods

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Maria Vincenzi
Posts: 2
Joined: February 19 2021
Affiliation: Institute of Cosmology and Gravitation

CosmoMC: Combine two SN likelihoods

Post by Maria Vincenzi » February 19 2021

Hi Antony and all,
Im using CosmoMC and I'm trying to combine likelihood’s from the JLA SN sample and from an additional independent SN sample that I simulated.

I set up this ini file:

Code: Select all

DEFAULT([CosmoMC_path]/batch2/JLA.ini)
DEFAULT([CosmoMC_path]/batch2/GAUSS.ini)
DEFAULT([CosmoMC_path]/batch2/common.ini)
DEFAULT([CosmoMC_path]/batch2/common.ini)
INCLUDE([CosmoMC_path]/batch2/my_SNsample.ini)

MPI_Converge_Stop = 0.01
...
action = 0

file_root = JLA_CMB_mySNsample

I wrote the file my_SNsample.ini as:

Code: Select all

use_SN = T
use_JLA = T

param[alpha_JLA]=0
param[beta_JLA]=0

jla_dataset = [path_to_file]/my_SNsample.dataset
jla_version = my_SNsample
But of course, my_SNsample.ini is overwriting the JLA dataset. How can I avoid this and combine BOTH SN sample?
Thank you in advance,
Maria

Antony Lewis
Posts: 1696
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: Combine two SN likelihoods

Post by Antony Lewis » February 22 2021

I think you'd have to merge the dataset files, or modify the code so they have different names.

Maria Vincenzi
Posts: 2
Joined: February 19 2021
Affiliation: Institute of Cosmology and Gravitation

Re: CosmoMC: Combine two SN likelihoods

Post by Maria Vincenzi » February 23 2021

ok thanks!

Post Reply