Using the enclosed german_credit_data.csv file to develop german.py, that loads the .csv file and runs a regression
Fantastic news! We've Found the answer you've been seeking!
Question:
Using the enclosed german_credit_data.csv file to develop german.py, that loads the .csv file and runs a regression predicting credit amount from age and duration, in that order. Add a constant using sm.add_constant(data). You will need to rename the column 'Credit amount' and should change it to 'Credit_amount'. Then, print the parameters and R-squared to 2 decimals using
print(model.params.round(2)) print(model.rsquared.round(2))
Link to german_credit_data.csv file:
https://drive.google.com/file/d/1oQUCSxigMV1eftYyO3Khzr28RYLBY9rI/view?usp=sharing
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: