Relative Content

Tag Archive for rdataframeloopsmatrixpoisson

Generating a column of probabilities in r for a dataframe

I have a dataframe dfof football matches and corresponding mean scoring rates for each team. The first 2 columns are Home and Away teams, the 3rd and 4th columns are mean scoring rates for Home and Away teams respectively. For example:

Generating a table of probabilities in r for a dataframe

I have a dataframe dfof football matches and corresponding mean scoring rates for each team. The first 2 columns are Home and Away teams, the 3rd and 4th columns are mean scoring rates for Home and Away teams respectively. For example: