This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
I counted how many players in each team in 797 players’ data using table function, and divide it by 797 to obtain the proportion. I then multiply the proportion by 150 to find the rough estimate of the number of players to be sampled and round them up. The sum of them should be approximately equal to 150. It turns out that all the allocations are 5 and the sum is also exactly 150. Then, I used the 'strata()' function from sampling package to obtain strata samples.
E(logsal) = 14.5403
C.I. for logsal = [14.37123, 14.70937]
E(pitcher) = 420.4
C.I. for pitcher = [361.2663, 479.5337]
The optimal allocation may benefit because it is not clear to say the variances in each strata are even roughly the same....
This is only a preview of the solution. Please use the purchase button to see the entire solution