Let me mention some aspects not covered by the other question.
I think that for an individual case it is nearly impossible to make a prediction with any validity. Even if you can determine the historical record for a given department, things change. Things always change.
The decisions on tenure are based on both the needs of a given department, which evolve over time, and the actual record and performance of an individual candidate. Nothing in this is very predictable. You can do a "good" job that isn't "quite" good enough as measured by the evaluations of your peers. You might be a bit unlucky in your research production or your teaching evaluations. Or you might be especially lucky. It varies.
Worse than that is the question of changing economic and even political situations. A legislature may decide to reduce funding for a university or for a specialty just as it becomes a factor for you. Economic conditions might be especially good or bad for bringing new students into the university (or your department) at just the point at which decisions are made.
There have been situations in which a department recommends a person for tenure, but the university says no, due to decreased or even uncertain funding. After all, tenure is a long term commitment that may be difficult to make in uncertain times.
And, of course, a pandemic might hit.
While one can gather statistics about such things over time, such things are essentially meaningless as a predictive measure for an individual. You take a chance. You work hard. You hope for the best. But also, you keep flexible if you are wise and look at how your current trajectory is going with respect to the trends developing around you.
The one thing you can do is try to match the stated priorities of an institution to your own skills. If you are a better teacher than researcher, then a teaching college will almost certainly be a better "bet" than a research focused institution. But that, I assume, is obvious. But be realistic about your self evaluation.