# Create an inference model to measure the evidence of.

Source:`R/create_ns_inference_model.R`

`create_ns_inference_model.Rd`

Create an inference model to measure the evidence of. To do so, the inference model is created as usual (see create_inference_model), except for using a Nested Sampling MCMC (see create_ns_mcmc)

## Usage

```
create_ns_inference_model(
site_model = create_jc69_site_model(),
clock_model = create_strict_clock_model(),
tree_prior = create_yule_tree_prior(),
mcmc = create_ns_mcmc()
)
```

## Arguments

- site_model
a site model, as returned by

`create_site_model`

- clock_model
a clock model, as returned by

`create_clock_model`

- tree_prior
a tree priors, as returned by

`create_tree_prior`

- mcmc
one MCMC. Use

`create_mcmc`

to create an MCMC. Use`create_ns_mcmc`

to create an MCMC for a Nested Sampling run. Use`check_mcmc`

to check if an MCMC is valid. Use`rename_mcmc_filenames`

to rename the filenames in an MCMC.

## See also

Use create_inference_model to create a regular inference model. Use create_test_ns_inference_model to create an inference model to estimate the marginal likelihood with a short MCMC, to be used in testing.

## Examples

```
check_empty_beautier_folder()
inference_model <- create_ns_inference_model()
check_empty_beautier_folder()
```