createdata function

Create data set for analysis.