Modeling dependence networks for agent based simulation of online and offline communities