DS4PS / cpp-524-sum-2020

Course shell for CPP 524 Foundations of Program Evaluation II for Summer 2020.
http://ds4ps.org/cpp-524-sum-2020/
0 stars 1 forks source link

Lab 2 #2

Open malmufre opened 4 years ago

malmufre commented 4 years ago

Hello, For Questions 1 through 5 I have created the table according to variables , did the Chi -Square test , and stated there was no stat. significance if p-value of Chi-square test was less than 0.05.(I did not use t.tests in these questions since variable is a factor) Here's an example:

chisq.test( q4, simulate.p.value=TRUE, B=10000 )

And since p-value = 0.06749, this was my answer:

Answer : We do observe differences between male and female entrepreneurs in regards to taking on personal debt.The contrast was significant at the alpha=0.05 level (chi-square p-value 0.06749). Am I doing this correctly?

As for numeric Factors , I have done this:

q6<- table( dat$age, dat$gender ) q6 %>% prop.table( margin=1 ) %>% round(2) %>% pander()

t.test( age ~ gender, data=dat ) We do not observe differences between male and female entrepreneurs in regards to age.The contrast was not significant at the alpha=0.05 level (chi-square p-value 0.001577).

Am I on the right path?

Thanks!

JayCastro commented 4 years ago

I thought that if the p value is less than .05 it is significant so I did the opposite of what you did.

JayCastro commented 4 years ago

I have a question for Question about Question 8A. Do we count all the comparison groups or only the ones we observed? So is it .05/7 or .05/15?

CamarenaL commented 4 years ago

@malmufre I know we discussed the problem outside of this forum but for other's that check this thread.

@JayCastro is correct: if a p-value is less than 0.05 (p < 0.05), then it is statistically significant. If it is above 0.05, we would report that it is not statistically significant.

CamarenaL commented 4 years ago

@JayCastro for Question 8A. You only need to use the 7 contrasts. Question 8: Based upon these seven contrasts, would you conclude that the resources male and female nonprofit entrepreneurs have at the time of founding were equivalent?