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

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

I'm going to go out on a limb and guess as there is absolutely no actual description of the data involved that your variable Breeding_month is character, meaning it contains letters. So the natural order of character months starts with April, August, ....

The easiest approach would be to create a new variable that is the month number of the calendar year and use that.

If you want to see text like April appear then create a custom format that will display the numeric value 1='January' 2='February' etc.

 

OR go back early in your data and make sure that your month variable is a date value and use a format like MONNAME to display the dates as words.

 


@Ameurgen wrote:

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 


 

View solution in original post

1 REPLY 1
ballardw
Super User

I'm going to go out on a limb and guess as there is absolutely no actual description of the data involved that your variable Breeding_month is character, meaning it contains letters. So the natural order of character months starts with April, August, ....

The easiest approach would be to create a new variable that is the month number of the calendar year and use that.

If you want to see text like April appear then create a custom format that will display the numeric value 1='January' 2='February' etc.

 

OR go back early in your data and make sure that your month variable is a date value and use a format like MONNAME to display the dates as words.

 


@Ameurgen wrote:

Hi evry one,

i need little help , i ma conducting GLM using ineraction between month and breed (see plot example below), so but GLM keep give me the months  in disorder , so please in any one have a  solution, that will be very helpful

regards

 

Ameurgen_1-1695687321292.png

 

 


 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 637 views
  • 0 likes
  • 2 in conversation