## SEEKING ASSISTANCE ABOUT COX MULTIVARIATE FRACTIONAL POLYNOMIAL ANALYSIS MACRO

Occasional Contributor
Posts: 7

# SEEKING ASSISTANCE ABOUT COX MULTIVARIATE FRACTIONAL POLYNOMIAL ANALYSIS MACRO

I have a problem that is longstanding. I often encounter continuous variables that are non linear yet I want to model the variables as linear variables. There is a macro I found in one published article(  FRACTIONAL POLYNOMIAL MODEL USING AUTOMATED MPF8 MACRO). The problem is that always the macro refuses to run and I don't want to stratify the variables.

%mfp8 (
dsname = Develop,
yname = Outcome,
xname = BMI SBP CHOLE,
xbin = Sex AGE INCOME,
xinclude = ,
model = S ,
pw = -2 -1 -0.5 0 0.5 1 2 3,
m = 2,
censvar = Censor,
censval = 0,
strata = Sex AGE_GROUP1 CTRB_PT_TYPE_CD DRNK_HABIT_RSPS_CD SMK_STAT_TYPE_RSPS_CD EXERCI_FREQ_RSPS_CD,
ties = efron,
alpha = 0.05,
mselect = ra2,
maxcycle = 10,
macpath = C:\Users\David\Desktop analysis,
dsout = fpout,
showres = r
);

I tried to rewrite the macro in this way

%Macro mfp8 (
dsname = Develop,
yname = Outcome,
xname = BMI SBP CHOLE,
xbin = Sex AGE INCOME,
xinclude = ,
model = S ,
pw = -2 -1 -0.5 0 0.5 1 2 3,
m = 2,
censvar = Censor,
censval = 0,
strata = Sex AGE_GROUP1 CTRB_PT_TYPE_CD DRNK_HABIT_RSPS_CD SMK_STAT_TYPE_RSPS_CD EXERCI_FREQ_RSPS_CD,
ties = efron,
alpha = 0.05,
mselect = ra2,
maxcycle = 10,
macpath = C:\Users\David\Desktop analysis,
dsout = fpout,
showres = r
);

%Mend mfp8;

But it also did not excecute.

I will be glad for assistance.

Occasional Contributor
Posts: 7

## SAS COX HAZARDS MODELLING USING FRACTIONAL POLYNOMIALS

I have a problem that is longstanding. I often encounter continuous variables that are non linear yet I want to model the variables as linear variables. There is a macro I found in one published article(  FRACTIONAL POLYNOMIAL MODEL USING AUTOMATED MPF8 MACRO). The problem is that always the macro refuses to run and I don't want to stratify the variables.

%mfp8 (
dsname = Develop,
yname = Outcome,
xname = BMI SBP CHOLE,
xbin = Sex AGE INCOME,
xinclude = ,
model = S ,
pw = -2 -1 -0.5 0 0.5 1 2 3,
m = 2,
censvar = Censor,
censval = 0,
strata = Sex AGE_GROUP1 CTRB_PT_TYPE_CD DRNK_HABIT_RSPS_CD SMK_STAT_TYPE_RSPS_CD EXERCI_FREQ_RSPS_CD,
ties = efron,
alpha = 0.05,
mselect = ra2,
maxcycle = 10,
macpath = C:\Users\David\Desktop analysis,
dsout = fpout,
showres = r
);

I tried to rewrite the macro in this way

%Macro mfp8 (
dsname = Develop,
yname = Outcome,
xname = BMI SBP CHOLE,
xbin = Sex AGE INCOME,
xinclude = ,
model = S ,
pw = -2 -1 -0.5 0 0.5 1 2 3,
m = 2,
censvar = Censor,
censval = 0,
strata = Sex AGE_GROUP1 CTRB_PT_TYPE_CD DRNK_HABIT_RSPS_CD SMK_STAT_TYPE_RSPS_CD EXERCI_FREQ_RSPS_CD,
ties = efron,
alpha = 0.05,
mselect = ra2,
maxcycle = 10,
macpath = C:\Users\David\Desktop analysis,
dsout = fpout,
showres = r
);

%Mend mfp8;

But it also did not excecute.

I will be glad for assistance.

Valued Guide
Posts: 580

## Re: SAS COX HAZARDS MODELLING USING FRACTIONAL POLYNOMIALS

1. Stop using all upcase titles, screaming is not necesary.
2. SAS macros are nothing more than automatic code replacements. Before you write a macro you need working code.
3. Posting the log as text using {i} icon is necessary to see what happened.
Occasional Contributor
Posts: 7

## Re: SAS COX HAZARDS MODELLING USING FRACTIONAL POLYNOMIALS

The macro does not return any error message.

Occasional Contributor
Posts: 7

## Re: SAS COX HAZARDS MODELLING USING FRACTIONAL POLYNOMIALS

Is there any other procedure availbale in sas 9.4 to carry out multivariable fractional polynomial modelling in cox models

Discussion stats
• 4 replies
• 146 views
• 0 likes
• 2 in conversation