statistics - how to calculate logistic regression equation when one variable is categorical? -


i have calculated binary logistic regression getting problem in calculating logistic regression equation value

prediction = 1/ 1+ e^ - z 

i have taken age categorical variable

20-30 (age group 0) 20-30 (group 1) 30-40 (group 2) 

when calculated log regression equation becomes

log regression equation = 1 / (1 + exp(-(-8.458+1.321*gender+1.632*marital-status+0.919*age-1)) 

why minus 1 value age (where 1 represents 20-30 (age group 1) independent variable age ? can me please


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -