add logit regression codes and write them in tex file