Statistical analysis for network-based models with applications to genetic association and prediction