logistic regression code verified
complete linear regression and logistic regression