The degrees of freedom which Stata specifies for a model using the fp function for fractional polynomials differs from what I would expect.
for example running
results in a model a second degree fractional polynomial with powers -2 -2, according to the model statistics with 2 degrees of freedom.
I would, maybe erroneously, have expected that the model would have 5 degrees of freedom, as the Stata manual page on fp mentions:
A fractional polynomial model of degree m is taken to have 2m+1 degrees of freedom (df): one for β0 and one for each βj and its associated power.
Similar statements can be found in Royston P, Altman DG. Regression Using Fractional Polynomials of Continuous Covariates: Parsimonious Parametric Modelling. Applied Statistics 1994;43:429
Am I wrong in thinking df=2 would be a little too low in this case?
Second to that question, I wonder if it would be possible to 'overrule' the prespecified degrees of freedom, for example when running 'estat ic'.
for example running
Code:
sysuse auto, clear fp <weight>: logit foreign <weight>
I would, maybe erroneously, have expected that the model would have 5 degrees of freedom, as the Stata manual page on fp mentions:
A fractional polynomial model of degree m is taken to have 2m+1 degrees of freedom (df): one for β0 and one for each βj and its associated power.
Similar statements can be found in Royston P, Altman DG. Regression Using Fractional Polynomials of Continuous Covariates: Parsimonious Parametric Modelling. Applied Statistics 1994;43:429
Am I wrong in thinking df=2 would be a little too low in this case?
Second to that question, I wonder if it would be possible to 'overrule' the prespecified degrees of freedom, for example when running 'estat ic'.
Comment