BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Brian_L
Calcite | Level 5

Hi all,


Currently I am using PROC MIXED to fit some data, and I know we can use the ESTIMATE or CONTRAST statement to compare different groups.
A question I have which might be really simple is: how to test if a coefficient estimate is greater than a specified value (other than zero)?

 

For example:

 data wheat;
         input id variety yield moist;
         datalines;
       1       1         41       10
       2       1         69       57
       3       1         53       32
       4       1         66       52
       5       1         64       47
       6       1         64       48
       7       2         49       30
       8       2         44       21
       9       2         44       20
      10       2         46       26
      11       2         57       44
      12       2         42       19
      13       3         69       50
      14       3         62       40
      15       3         50       23
      16       3         76       58
      17       3         48       21
      18       3         55       30
      19       4         48       22
      20       4         60       40
      21       4         45       17
      22       4         47       21
      23       4         62       44
      24       4         43       13
      25       5         65       49
      26       5         63       44
      27       5         71       57
      28       5         68       51
      29       5         52       27
      30       5         68       52
;

proc mixed data=wheat;
	class variety;
	model yield = moist /  solution;
	random int moist / type=un subject=variety solution;
quit;

 

How can I set the code to test if the fix effect “moist” is greater than 0.3 at 95% confidence level?

Thank you!
Brian

1 ACCEPTED SOLUTION

Accepted Solutions
StatsMan
SAS Super FREQ

Use the STORE statement to save your model results. Then use PROC PLM with the TESTVALUE= option on the ESTIMATE statement. The UPPER or LOWER option on the ESTIMATE statement will give you one-tailed tests. 

View solution in original post

2 REPLIES 2
StatsMan
SAS Super FREQ

Use the STORE statement to save your model results. Then use PROC PLM with the TESTVALUE= option on the ESTIMATE statement. The UPPER or LOWER option on the ESTIMATE statement will give you one-tailed tests. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 401 views
  • 4 likes
  • 2 in conversation