If the grouping variable is numeric, emmeans package will automatically concentrate the number with variable name. Thus it will lead to a lack of output for contrast testing in the LS-means calculation.
One solution is to change the contrast column by removing the name of the grouping variable from it.
For example, remove the 'trt' from 'trt2 - trt1' so that it can be consistent with other dataframes.
Don't forget to add a test for this issue, using the low1.sas7bdat data.
If the grouping variable is numeric,
emmeans
package will automatically concentrate the number with variable name. Thus it will lead to a lack of output for contrast testing in the LS-means calculation.One solution is to change the contrast column by removing the name of the grouping variable from it. For example, remove the 'trt' from 'trt2 - trt1' so that it can be consistent with other dataframes.
Don't forget to add a test for this issue, using the
low1.sas7bdat
data.