Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need to get empirical size and power of test. Also, I need some R code help. is this right? b = qnorm(1-(0.05/2)))b[i]=1 } sum(b)/nsim

I need to get empirical size and power of test. Also, I need some R code help.

is this right?

b<-numeric(nsim)

for(i in 1:nsim) {

if((chi[i]-E1[i])/sqrt(V1u[i]) >= qnorm(1-(0.05/2)))b[i]=1

}

sum(b)/nsim

Also, how to get empirical covariance estimator for gee in R i.e. cov(yi) = (yi - pi^)(yi - pi^)' then calculate

cov(Y) = diag( cov(y1).... cov(yN) )

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions