bt_addmodel: Create model: Code to determine restrictions for a DAG

View source: R/ancestor_code.R

bt_addmodelR Documentation

Create model: Code to determine restrictions for a DAG

Description

For a given DAG, this function will return the necessary restrictions for that model to be estimated Currently, this function returns all parameters that must be restricted to zero.

Usage

bt_addmodel(dag)

Arguments

dag

a description of the model using DAGs. These can be created at dagitty.net and copied into this function.

Value

a string of Restrictions that can be placed into a BayesTraits script.


SamPassmore/bayestraitr documentation built on July 8, 2023, 10:16 a.m.