Let f∈Lp(Rd), d≥3, and let Atf(x) the average of f over the sphere with radius t centered at x. For a subset E of [1,2] we prove close to sharp Lp→Lq estimates for the maximal function supt∈E∣Atf∣. A new feature is the dependence of the results on both the upper Minkowski dimension of E and the Assouad dimension of E. The result can be applied to prove sparse domination bounds for a related global spherical maximal function.