A copy of the slides can be found here.
We will now use the FCI algorithm on the data, thereby dropping the assumption of no unobserved confounding. This algorithm is much slower than PC, which is perhaps not so surprising, since its task is a lot more difficult. If you want to skip the computation time for exercises 4.1 and 4.2, you may load in the prerun models instead:
# Load model from 4.1:
load(url("https://biostatistics.dk/teaching/eurocim/data/fcires.rda"))
# Load model from 4.2:
load(url("https://biostatistics.dk/teaching/eurocim/data/tfcires.rda"))
Use this code to run the FCI algorithm on nlsdata
(takes
several minutes!):
fcires <- fci(nlsdata, sparsity = 0.05)
Plot the PAG along with temporal information using the
tplot()
function:
tplot(tamat(amat(fcires), order = c("r1", "r6", "r12")))
Look at the result and consider the following questions:
We will now make use of a version of the FCI algorithm that utilizes the temporal information in our dataset.
Use this code to run the FCI algorithm on nlsdata
(takes
several minutes!):
tfcires <- tfci(nlsdata, sparsity = 0.05, order = c("r1", "r6", "r12"))
Now, plot the resulting TPAG:
tplot(tfcires)
Look at the result and consider the following questions:
Compare the graph from 5.1 (TFCI) visually with the result from exercise 3.1 (the TPDAG obtained from using the TPC algorithm). Which of the two graphs do you find to be the most plausible? Do you think the assumption of no unobserved confounding was reasonable?
Load in and plot our jointly made expert latent DAG using this code:
load(url("https://biostatistics.dk/teaching/eurocim/data/expert_ldag.rda"))
tplot(expert_ldag)
Compare the graph visually with the result from 5.1 (TFCI):
Conclude on your results from 5.1-5.3:
Now, consider whether you want to change any parts of our first attempt at an expert latent DAG for these data, based on what you found using TFCI.
Go back to exercises 2.1, 2.3, 2.4, or 3.2, and rerun them using the TFCI algorithm.