How do prior arrests impact re-arrest rate?
During the study of the prison data, you obtain new information about each convict, such as the number of convictions prior to current incarceration prio.
You want to visualize how different values of prio impact the baseline survival function modeled with WeibullAFTFitter.
The WeibullAFTFitter class has been imported and a new instance aft has been created. The matplotlib.pyplot library is imported as plt, and the pandas and numpy libraries are imported as pd and np, respectively. Use the console to explore the DataFrame and its column names as needed.
Este exercício faz parte do curso
Survival Analysis in Python
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
# Fit data to aft
____