Closed williamty closed 2 years ago
Hello, We are actually using PC directly from the pcalg package, we only put a python wrapper around it. Can you try running directly pcalg in R and compare its results with Tetrad? That would be really helpful, thanks a lot
Yes, that's what I'm going to do next. I'll report the result here later.
I think I know why. The dataset I used is real world data, ,so it's mixed. But I didn't deal with the mixed data before running the PC algorithm in CDT. Meanwhile, Tetrad dealt with the mixed data problem automatically.
Thanks for the info ! Do you know how Tetrad manages this ?
Best, Diviyan
It separates mixed data by pre-define the discrete data dimensions. Then it used Conditional Gaussian or Degenerated Gaussian algorithm to deal with relationships between continuous and discrete nodes.
I used two packages to calculate DAG for the same dataset. But I got two different DAG. Another is using Tetrad. The two DAG are very different, and CDT's is definitely wrong!