This function makes a changepoint birth move, possibly adding a changepoint.

1 |

`Eall` |
Changepoints: List of target nodes, where each element contains a vector of changepoints. |

`Sall` |
Network structure: List of target nodes, where each element is a NumSegs by NumNodes matrix giving the parents for the target node in each segment. A binary matrix. |

`Ball` |
Network parameters: Similar to network structure, but with regression parameters included. |

`Sig2all` |
Sigma squared parameters. |

`X` |
Response data. |

`Y` |
Target data. |

`D` |
Hyperparameter. |

`GLOBvar` |
Global variables of the MCMC simulation. |

`HYPERvar` |
Hyperparameter variables. |

`target` |
Which target node the move is being proposed for. |

A list with elements:

`E` |
New changepoint vector for target node. |

`Sall` |
Updated network structure. |

`Ball` |
Updated network structure with regression parameters. |

`Sig2all` |
Udated sigma squared. |

`prior.params` |
Updated vector of structure prior hyperparameters. |

`accept` |
Whether the move was accepted or not. |

`move` |
What type
of move was made. In this case |

`alpha` |
The acceptance ratio of the move. |

`estar` |
The location of the new changepoint. |

`k` |
Hyperparameter. |

Sophie Lebre

Frank Dondelinger

For more information about the different changepoint moves, see:

Dondelinger et al. (2012), "Non-homogeneous dynamic Bayesian networks with Bayesian regularization for inferring gene regulatory networks with gradually time-varying structure", Machine Learning.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.