CPP 524
Jacqui Anderson
Packages
Data
# load lab data
URL <- "https://github.com/DS4PS/cpp-524-sum-2020/blob/master/labs/data/female-np-entrepreneurs.rds?raw=true"
dat <- readRDS(gzcon(url( URL )))
head( dat )Compare education levels of male and female entrepreneurs.
## [1] "None" "High School" "Some College" "Bachelor" "Graduate"
| Female | Male | |
|---|---|---|
| None | 0.47 | 0.53 |
| High School | 0.4 | 0.6 |
| Some College | 0.57 | 0.43 |
| Bachelor | 0.6 | 0.4 |
| Graduate | 0.52 | 0.48 |
## Number of cases in table: 554
## Number of factors: 2
## Test for independence of all factors:
## Chisq = 4.383, df = 4, p-value = 0.3566
## Chi-squared approximation may be incorrect
##
## Pearson's Chi-squared test
##
## data: t
## X-squared = 4.3831, df = 4, p-value = 0.3566
##
## Pearson's Chi-squared test with simulated p-value (based on 10000
## replicates)
##
## data: t
## X-squared = 4.3831, df = NA, p-value = 0.3656
ANSWER: In the test for group equivalence, FAIL TO REJECT the null and conclude there is not enough statistical evidence to support a difference in education level betweeen male and female entrepreneurs.
Compare work experience for male and female entrepreneurs.
## [1] "0" "1-2" "3-5" "6-10" "11-15" "15+"
| Female | Male | |
|---|---|---|
| 0 | 0.73 | 0.27 |
| 1-2 | 0.67 | 0.33 |
| 3-5 | 0.62 | 0.38 |
| 6-10 | 0.57 | 0.43 |
| 11-15 | 0.58 | 0.42 |
| 15+ | 0.53 | 0.47 |
##
## Pearson's Chi-squared test
##
## data: t2
## X-squared = 4.0086, df = 5, p-value = 0.5482
##
## Pearson's Chi-squared test with simulated p-value (based on 10000
## replicates)
##
## data: t2
## X-squared = 4.0086, df = NA, p-value = 0.5664
## [1] 0.008333333
ANSWER: In the test for group equivalence, FAIL TO REJECT the null and conclude there is not enough statistical evidence to support a difference in work experience betweeen male and female entrepreneurs.
Compare success in accessing seed funding for male and female entrepreneurs.
## [1] "No" "Yes"
| Female | Male | |
|---|---|---|
| No | 0.55 | 0.45 |
| Yes | 0.54 | 0.46 |
##
## Pearson's Chi-squared test with Yates' continuity correction
##
## data: t3
## X-squared = 0.0086147, df = 1, p-value = 0.9261
##
## Pearson's Chi-squared test with simulated p-value (based on 10000
## replicates)
##
## data: t3
## X-squared = 0.033448, df = NA, p-value = 0.8621
## [1] 0.025
ANSWER: In the test for group equivalence, FAIL TO REJECT the null and conclude there is not enough statistical evidence to support a difference in success in accessing seed funding betweeen male and female entrepreneurs.
Compare the willingness to take on personal debt for male and female entrepreneurs.
## [1] "$0" "$0k-$10k" "$10k-$25k" "$25k-$50k" "$50k+"
| Female | Male | |
|---|---|---|
| $0 | 0.57 | 0.43 |
| $0k-$10k | 0.6 | 0.4 |
| $10k-$25k | 0.39 | 0.61 |
| $25k-$50k | 0.47 | 0.53 |
| $50k+ | 0.36 | 0.64 |
##
## Pearson's Chi-squared test
##
## data: t4
## X-squared = 8.6158, df = 4, p-value = 0.07145
##
## Pearson's Chi-squared test with simulated p-value (based on 10000
## replicates)
##
## data: t4
## X-squared = 8.6158, df = NA, p-value = 0.07079
## [1] 0.01
ANSWER: In the test for group equivalence, FAIL TO REJECT the null and conclude there is not enough statistical evidence to support a difference in willingness to take on personal debt betweeen male and female entrepreneurs.
Compare sources of first year funding for male and female entrepreneurs.
## [1] "Donations" "Founder" "Earned Revenues" "Foundation Grant"
## [5] "Gov Grant" "Member Fees" "Parent Org" "Angel"
## [9] "Corp Grant"
| Female | Male | |
|---|---|---|
| Donations | 0.51 | 0.49 |
| Founder | 0.56 | 0.44 |
| Earned Revenues | 0.66 | 0.34 |
| Foundation Grant | 0.59 | 0.41 |
| Gov Grant | 0.59 | 0.41 |
| Member Fees | 0.46 | 0.54 |
| Parent Org | 0.5 | 0.5 |
| Angel | 0.52 | 0.48 |
| Corp Grant | 0.67 | 0.33 |
##
## Pearson's Chi-squared test
##
## data: t5
## X-squared = 8.8304, df = 8, p-value = 0.3568
##
## Pearson's Chi-squared test with simulated p-value (based on 10000
## replicates)
##
## data: t5
## X-squared = 8.8304, df = NA, p-value = 0.3565
## [1] 0.005555556
ANSWER: In the test for group equivalence, FAIL TO REJECT the null and conclude there is not enough statistical evidence to support a difference in sources of first year funding betweeen male and female entrepreneurs.
Compare age at the time of nonprofit formation for male and female entrepreneurs.
## [1] TRUE
## $Female
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## 22.00 44.00 52.00 51.94 59.50 85.00 15
##
## $Male
## Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
## 29.00 45.25 57.00 55.05 64.75 82.00 5
##
## Welch Two Sample t-test
##
## data: age by gender
## t = -3.1749, df = 589.02, p-value = 0.001577
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -5.031881 -1.185709
## sample estimates:
## mean in group Female mean in group Male
## 51.93948 55.04828
ANSWER: In the test for group equivalence, REJECT the null and conclude there IS enough statistical evidence to support a difference age betweeen male and female entrepreneurs.
Compare income levels prior to starting the nonprofit for male and female entrepreneurs.
## [1] TRUE
## $Female
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 81 33139 61113 67742 86094 199147
##
## $Male
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1026 49437 69351 80883 107363 199684
##
## Welch Two Sample t-test
##
## data: income by gender
## t = -3.6353, df = 630.22, p-value = 0.0003003
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -20239.710 -6042.518
## sample estimates:
## mean in group Female mean in group Male
## 67741.83 80882.95
ANSWER: In the test for group equivalence, REJECT the null and conclude there IS enough statistical evidence to support a difference in prior income levels betweeen male and female entrepreneurs.
Based upon these seven contrasts, would you conclude that the resources male and female nonprofit entrepreneurs have at the time of founding were equivalent?
Q8-A:
What is the adjusted decision criteria used for contrasts to maintain an alpha of 0.05 for the omnibus test of group equivalence?
Answer: In Omnibus hypotheses scenarios, the results are rejected contingent on the failure of any one test. The Bonferroni Correction divides alpha by the number of contrasts and compares the p-value to the new alpha.
Q8-B:
What is the lowest p-value you observed across the seven contrasts?
Answer: p-value = 0.0003003
Q8-C:
Can we claim study group equivalency? Why or why not?
## [1] 0.007142857
Answer: The smallest p-value of 0.0003003 is much smaller than the Bonferroni Corrected Alpha of 0.007143. This concludes that we CANNOT claim group equivalency.