Jaime2 Tracker
https://communities.sas.com/kntur85557/tracker
Jaime2 TrackerSat, 12 Oct 2024 16:04:13 GMT2024-10-12T16:04:13ZSAS Defaults for Proc Freq in CMH DIF analysis
https://communities.sas.com/t5/SAS-Procedures/SAS-Defaults-for-Proc-Freq-in-CMH-DIF-analysis/m-p/598527#M76280
<P>Hi All,</P><P>This seems like a silly question but I cannot figure out what default scheme is used to assign the "reference" and "focal group" in a typical differential item functioning analysis using PROC FREQ. </P><P> </P><P>My code is : </P><P>proc freq data=mydata;<BR />tables stratum*gender*item&i./CMH noprint;<BR />output out=item&i. MHCHI COMOR CMH ; run;</P><P> </P><P>My gender variable is not dummy coded and has values = Male , Female. </P><P> </P><P>Would SAS use Females as the reference group since F comes before M, alphabetically? There has to be a rule documented someplace but I cannot find it. Of course my results are meaningless without knowing this. </P><P> </P><P>Thanks for any tips or links. </P><P> </P>Tue, 22 Oct 2019 20:49:33 GMThttps://communities.sas.com/t5/SAS-Procedures/SAS-Defaults-for-Proc-Freq-in-CMH-DIF-analysis/m-p/598527#M76280Jaime22019-10-22T20:49:33ZRe: Odds ratios by stratum in Proc freq
https://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594562#M76079
<P>Thanks so much. For some reason I was stuck on trying to get the MH odds ratio for each stratum - but this works. </P>Mon, 07 Oct 2019 21:42:22 GMThttps://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594562#M76079Jaime22019-10-07T21:42:22ZRe: Odds ratios by stratum in Proc freq
https://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594557#M76076
Thank you for this link! My problem is the OR is not there to begin withMon, 07 Oct 2019 21:03:30 GMThttps://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594557#M76076Jaime22019-10-07T21:03:30ZRe: Odds ratios by stratum in Proc freq
https://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594556#M76075
<P> </P><P>Hi, Thanks for your reply - 'CMH' is the only option I have in the tables statement. I don't see any odds ratios for the individual strata, only the general odds ratio. </P><P> </P><P>proc freq data =mydata;</P><P>tables stratum*mode*item&i./ CMH ;</P>Mon, 07 Oct 2019 21:01:03 GMThttps://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594556#M76075Jaime22019-10-07T21:01:03ZOdds ratios by stratum in Proc freq
https://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594552#M76072
<P>I'm doing differential item functioning (DIF) analyses using the CMH in Proc Freq and based on the breslow-day test of</P><P>Homogeneity of the Odds Ratios, there appears to be some nonuniform DIF. My question is whether I can use a keyword to request that the odds ratios be saved/printed for each of my 10 strata. </P><P>I've looked on the SAS 9.3 documentation for this proc and can't find any related information. </P><P>I'm using SAS 9.4</P><P> </P>Mon, 07 Oct 2019 20:45:13 GMThttps://communities.sas.com/t5/SAS-Procedures/Odds-ratios-by-stratum-in-Proc-freq/m-p/594552#M76072Jaime22019-10-07T20:45:13ZRe: Does SAS allow for two numeric variables to define x-axis?
https://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/440662#M15206
<P>I put my second x-axis variable (labeled "SS") in an xaxistable and it appears on the graph however, there are too many repeat values such that all the numeric values are blurred into one long incoherent string. Are there options such as "xaxis values=(118 to 132 by 2);" (as an example) that can be used with xaxistables? I cannot seem to format this secondary axis at all. My variables are all numeric, if that matters. </P><P> </P><P>I am not confident the xaxistable will solve this issue based on the limited number of option statements associated with it. </P>Tue, 27 Feb 2018 20:51:54 GMThttps://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/440662#M15206Jaime22018-02-27T20:51:54ZRe: Does SAS allow for two numeric variables to define x-axis?
https://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439501#M15166
<P>My graph looks like what I want except I don't have the second x-axis that I need. I just briefly read the grouped option and I don't think I want to group my data. I'm not sure though. Do yo have an example? I explained my data structure a little better in a response above - perhaps that might help clarify what I'd like to achieve. </P>Thu, 22 Feb 2018 22:38:14 GMThttps://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439501#M15166Jaime22018-02-22T22:38:14ZRe: Does SAS allow for two numeric variables to define x-axis?
https://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439493#M15165
<P>Thank you for your response but I would like both values for the x-axis displayed - each of which correspond to a variable in the data set. An example of what my data look like is below - maybe this helps clarify what I'd like.</P><P> </P><P>x1 x2 y1 .... up to y8</P><P>1 118 .52</P><P>2 118 .53</P><P>3 119 .60</P><P>4 120 .62</P><P>5 120 .69</P><P>6 121 .78</P><P>7 121 .82</P><P>...</P><P> </P><P>I'd need to be able to display both the x1 and x2 values along the x-axis. </P>Thu, 22 Feb 2018 22:04:50 GMThttps://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439493#M15165Jaime22018-02-22T22:04:50ZDoes SAS allow for two numeric variables to define x-axis?
https://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439482#M15162
<P>Hi, </P><P>I have a data set where essentially all variables are numeric and I would like to plot one variable (i.e., SScsem's listed below) as the y-variable and specify two other variables as the x-axis. The variables for the x-axis have a one-to-many relationship - one is a linear transformation of the other (the two scales have different properties so it would be best to use both for the x-axis).</P><P>My basic code is below (work-in-progress).</P><P> </P><P>Any idea if SAS allows for this type of feature?</P><P> </P><P>proc sgplot data=allCSEM;<BR />series x=x y= SScsem_K0/LINEATTRS=(color=black) ;<BR />series x=x y= SScsem_K02/LINEATTRS= (color=red);<BR />series x=x y= SScsem_K03/LINEATTRS= (color=blue);<BR />series x=x y= SScsem_K04/LINEATTRS= (color=green);<BR />series x=x y= SScsem_K05/LINEATTRS= (color=orange);<BR />series x=x y= SScsem_K06/LINEATTRS= (color=purple);<BR />run;</P>Thu, 22 Feb 2018 21:46:37 GMThttps://communities.sas.com/t5/Graphics-Programming/Does-SAS-allow-for-two-numeric-variables-to-define-x-axis/m-p/439482#M15162Jaime22018-02-22T21:46:37ZRe: How to delete one numeric value from a string variable
https://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435407#M68960
<P>Your solution worked - thank you! </P>Thu, 08 Feb 2018 19:56:17 GMThttps://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435407#M68960Jaime22018-02-08T19:56:17ZRe: How to delete one numeric value from a string variable
https://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435405#M68959
<P>Thank you very much! Your solution also worked just fine!</P>Thu, 08 Feb 2018 19:51:34 GMThttps://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435405#M68959Jaime22018-02-08T19:51:34ZRe: How to delete one numeric value from a string variable
https://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435374#M68954
<P>I'm creating control cards for another program. The rule is to literally "delete one "4" from the string of values." There is always at least one "4" in the variable, sometimes there are 2 or 3 of them. Thanks for asking. </P>Thu, 08 Feb 2018 18:10:20 GMThttps://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435374#M68954Jaime22018-02-08T18:10:20ZRe: How to delete one numeric value from a string variable
https://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435372#M68953
<P>Yes, this is exactly what I want to achieve. </P>Thu, 08 Feb 2018 18:05:20 GMThttps://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435372#M68953Jaime22018-02-08T18:05:20ZHow to delete one numeric value from a string variable
https://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435354#M68948
<P>I have a dataset with a character variable called "oldvar" that contains a string of numeric values such as "4 6 6 4 5". I would like to create a new variable that has one of the "4" values removed. For example, I would like my new variable to be "6 6 4 5" with the first 4 deleted or alternatively the new variable could be "4 6 6 5". Either one would work for me. I've tried using a combination of the substr and index functions but none have produced what I'm looking for.</P><P> </P><P>Example of values that "oldvar" takes on: </P><P>4 5 4 5</P><P>4 6 4</P><P>6 6 4 5</P><P>3 4 3</P><P> </P><P>Thank you in advance for any help! </P><P> </P>Thu, 08 Feb 2018 17:24:23 GMThttps://communities.sas.com/t5/SAS-Procedures/How-to-delete-one-numeric-value-from-a-string-variable/m-p/435354#M68948Jaime22018-02-08T17:24:23Z