Question: Write a function in R that performs a Chi-Square test for trend. Cannot use the built in prop.trend.test function. Need to calculate A and B

Write a function in R that performs a Chi-Square test for trend. Cannot use the built in prop.trend.test function. Need to calculate A and B given 2 vectors from a table. Write a function in R that performs a Chi-Square test for trend.

in the form pi ?+Si for some constants ?, ?. To relate Pi and Si, compute the test statisitc ?-AyB. where where which under Ho approximately follows a chi-square distri- bution with 1 df. (5) Rejection region (xi.1-a, 00) P-value : PG> ?*) P(Xi> X in the form pi ?+Si for some constants ?, ?. To relate Pi and Si, compute the test statisitc ?-AyB. where where which under Ho approximately follows a chi-square distri- bution with 1 df. (5) Rejection region (xi.1-a, 00) P-value : PG> ?*) P(Xi> X

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!