Calculate and graph fractional polynomials [STB-24: sg26.2] ------------------------------------------ ^fpcurve^ [ [newvar] ^=^ exp] [^in^ range] [^if^ exp] ^,^ ^p^owers^(^#[,#[,...]]^)^ [other_options] calculates and graphs the fractional polynomial defined by the sequence of ^powers()^. If ^newvar^ is specified, the fractional polynomial is saved in the new variable. Fractional polynomials are defined in Royston and Altman (1994, STB-21: sg26). Options ------- ^c^oef^(^#[,#[,...]]^)^ specifies the coefficients on each term in the fractional polynomial. By default, the coefficients are set to 1. ^con^stant^(^#^)^ specifies the constant. By default, it is 0. ^l^ogpowers^(^#[,#[,...]]^)^ specifies the powers on factors in log(exp). If this option is specified, the usual fractional convention concerning repeated powers is ignored and specified powers are applied literally. ^nog^raph suppresses the graph. ^o^bs^(^#^)^ specifies the number of observations to calculate when graphing against a range (i.e., when the current data set is empty). ^p^owers^(^#[,#[,...]]^)^ specifies the powers in the fractional polynomial. ^r^ange^(^min,max^)^ specifies the range over which to calculate the polynomial. When ^range()^ is specified, the ^= exp^ must be omitted. Author ------ Sean Becketti Stata Technical Bulletin EMAIL stb@@stata.com Also see -------- STB: sg26.2 (STB-24); sg26.1 (STB-22); sg26 (STB-21) On-line: ^help^ for @fp@, @fpgraph@, @fpgen@, @fpplot@, @fpx@, @swfp@ if installed.