Page 1 of 1

CosmoMC: Combine two SN likelihoods

Posted: February 19 2021
by Maria Vincenzi
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

Re: CosmoMC: Combine two SN likelihoods

Posted: February 22 2021
by Antony Lewis
I think you'd have to merge the dataset files, or modify the code so they have different names.

Re: CosmoMC: Combine two SN likelihoods

Posted: February 23 2021
by Maria Vincenzi
ok thanks!