Rdocumentation
powered by
Learn R Programming
dagR (version 1.2.1)
Directed Acyclic Graphs: Analysis and Data Simulation
Description
Draw, manipulate, and evaluate directed acyclic graphs and simulate corresponding data, as described in International Journal of Epidemiology 50(6):1772-1777.
Copy Link
Link to current version
Version
Version
1.2.1
1.2.0
1.1.3
1.1.2
1.1.1
1.0.1
Install
install.packages('dagR')
Monthly Downloads
279
Version
1.2.1
License
GPL-2
Maintainer
Lutz Breitling
Last Published
October 9th, 2022
Functions in dagR (1.2.1)
Search all functions
dag.letter
Write a DAG node symbol.
dag.draw
Draw a DAG.
dag.search
Evaluate possible adjustment sets of a DAG.
dag.move
Interactively move a node or curving point in a DAG.
dag.legend
Write the legend in a DAG drawing.
dag.init
Set up a new DAG.
dag.sim2
Simulate data based on a DAG.
dag.sim
Simulate data based on a DAG.
dag.ancestors
Identify ancestors of DAG nodes.
dag.letter2
Return a DAG node symbol.
dagR2dagitty
Create dagitty code from a dagR DAG
demo.dag4
Set up demo DAG #4.
dagR-package
Directed Acyclic Graphs: Analysis and Data Simulation
demo.dag2
Set up demo DAG #2.
demo.dag5
Set up demo DAG #5.
plot.dagRdag
Function to draw a DAG
msas
Identify minimal sufficient adjustment sets.
demo.dag3
Set up demo DAG #3.
inAngle
Calculate angle between two arcs.
is.in
Check if a specific numeric value occurs in a vector.
is.unknown
Check if a DAG node presents an unknown variable.
viv
Is a numeric vector in another vector?
distPoints
Calculate distance between two points.
write.paths
Write the paths into a DAG drawing.
eval.paths
Evaluate potentially biasing paths in a DAG.
garrows
Draw a directed arc in a DAG.
find.paths
Find potentially biasing paths in a DAG.
demo.dag6
Set up demo DAG #6.
rm.node
Remove a node from a DAG.
demo.dag7
Set up demo DAG #7.
is.acyclic
Check if a DAG actually is acyclic.
summary_dagRdag
Summarize a DAG.
summary.dagRdag
Summarize a DAG.
smoothArc
Draw an undirected assocation in a DAG.
print.dagRdag
Prints the raw contents of an object of class dagRdag.
demo.dag0
Set up demo DAG #0.
demo.dag1
Set up demo DAG #1.
rm.arc
Remove an arc from a DAG.
add.arc
Add an arc to a DAG.
add.node
Add a node to an existing DAG.
addAngle
Sum up two radian angles.
allCombs
Create all combinations of the elements of a vector.
assoc.exists
Check if association between two DAG nodes exists.
brute.search
Evaluate all possible adjustment sets of a DAG.
dag.adjust
Adjust an existing DAG for covariables.
dag.adjustment
Adjust a DAG for one or more variables.
angle
Calculate radian angle of line between two points.
anglePoint
Calculate coordinates at specific angle and distance.