14.09.2015 Views

Matvec Users’ Guide

Matvec Users' Guide

Matvec Users' Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

72 CHAPTER 11. GENERALIZED LINEAR MIXED MODEL ANALYSES<br />

Kp=[0 1, -1 0 0 0<br />

0 0 0 0 1 , -1]<br />

"Estimate ",est=M.estimate(Kp)<br />

"Kp*bhat ",Kp*bhat<br />

with the result:<br />

Estimate<br />

1.51543<br />

-1.51994<br />

Kp*bhat<br />

1.51543<br />

-1.51994<br />

Wald tests and standard errors can be obtained using the M.contrast(Kp) member function. For example,<br />

to test for a formulation effect:<br />

"\nFormulation Effect p-value="+string(pval=M.contrast(Kp))<br />

with the result:<br />

RESULTS FROM CONTRAST(S)<br />

----------------------------------------------------------<br />

Contrast MME_addr K_coef Raw_data_code<br />

---------------------------------------------<br />

1 2 1 Form:A<br />

1 3 -1 Form:B<br />

estimated value (K’b-M) = 1.51543 +- 2.31358<br />

Prob(|t| > 0.655017) = 0.512532 (p_value)<br />

2 5 1 Form*log2dose:A*log2dose<br />

2 6 -1 Form*log2dose:B*log2dose<br />

estimated value (K’b-M) = -1.51994 +- 1.03644<br />

Prob(|t| > 1.46651) = 0.142666 (p_value)<br />

----------------------------------------------------------<br />

joint hypothesis test H: K’b = M<br />

Prob(F > 3.67092) = 0.0254529 (p_value)<br />

Formulation Effect p-value=0.0254529<br />

A likelihood ratio test can also be performed by fitting a reduced model with the restriction K ′ β = 0<br />

and comparing the log-likelihoods of the full and reduced models. For example, to calculate the likelihood<br />

ratio test for a formulation effect:<br />

M.glim(20,Kp);<br />

string("\nReduced Log Like=",RL=M.log_like())<br />

Chi2=StatDist("ChiSquare",2);<br />

string("\nLRT =",TS=2*(L-RL),"\n","P-value=",1-Chi2.cdf(TS))<br />

with the result:<br />

Reduced Log Like=-38.2602<br />

LRT =12.3139<br />

P-value=0.00211866

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!