FINAL DIAGNOSTIC MODEL SPECIFICATION - UNCHANGED PENALIZED COEFFICIENTS
Output: probability of fragility fracture present at the index hospitalization, not future fracture risk.
Required predictors: Status_group, Age, L_BMD, F_BMD, Ca, FPG, TG, LDLC, VD3, OC, CTX, P1NP
logit(p) = intercept + beta_status * I(Status_group == 'Postmenopausal_female') + sum_v [beta_linear_v * x_v + beta_nonlinear_v * h_v(x_v)].
p = plogis(logit(p)). All measurements remain in the ORIGINAL DEVELOPMENT-DATA UNITS.
For continuous variable v with knots k1<k2<k3:
h_v(x) = [(x-k1)_+^3 - (k3-k1)/(k3-k2)*(x-k2)_+^3 + (k2-k1)/(k3-k2)*(x-k3)_+^3] / (k3-k1)^2.
Here (z)_+ = max(z,0). This is the Hmisc ordinary RCS basis with inclx=TRUE, norm=2, pc=FALSE.
Knots are the full development cohort's 10th, 50th and 90th percentiles (R quantile type 7). Stored knots must NOT be re-estimated in new data.
Selected one-SE lambda: 0.017073526474706904
Intercept: 3.4909976952114592

BINARY CODING AND COEFFICIENT:
    predictor             reference                      comparison         coefficient
 Status_group Male_50plus (coded 0) Postmenopausal_female (coded 1) 0.31931616176454014

CONTINUOUS PREDICTORS, TWO BASIS COEFFICIENTS AND STORED KNOTS:
 predictor linear_basis_coefficient nonlinear_basis_coefficient            knot_10th
       Age   0.02019896381257176715      0.02354419637888384431 55.00000000000000000
     L_BMD  -6.72137008398592339375      3.74726179936983960772  0.50129999999999997
     F_BMD  -1.44655189864167499358      0.86099882640844982440  0.58029999999999993
        Ca  -0.02364854841750884534      0.00682764368043894173  2.08999999999999986
       FPG   0.06430036172276878959     -0.04328878922550941782  3.79999999999999982
        TG  -0.13500879246244840148      0.14124853149771443572  0.69999999999999996
      LDLC  -0.01395506241671804794     -0.03190575323902415661  1.95999999999999996
       VD3  -0.00440138407042153530      0.00395609311088031528 20.10999999999999943
        OC  -0.00823859809859250371      0.00396834202320646943  8.13900000000000112
       CTX  -0.00085485947367034212     -0.00514632099185590407  0.26000000000000001
      P1NP   0.00106087866549301022     -0.00096873482087768295 24.13000000000000256
            knot_50th            knot_90th     original_minimum     original_maximum
 68.00000000000000000 83.00000000000000000 43.00000000000000000  98.0000000000000000
  0.69499999999999995  0.97270000000000001  0.26800000000000002   1.4860000000000000
  0.78849999999999998  1.03000000000000003  0.29999999999999999   1.6599999999999999
  2.22999999999999998  2.37700000000000022  1.79000000000000004   3.5000000000000000
  4.76999999999999957  6.89400000000000013  1.67999999999999994  19.3700000000000010
  1.22999999999999998  2.57500000000000195  0.35999999999999999  18.5700000000000003
  3.16000000000000014  4.49000000000000021  0.67000000000000004   7.2500000000000000
 31.10500000000000043 48.01400000000001000  5.73000000000000043  70.0000000000000000
 16.80000000000000071 31.89999999999999858  0.94299999999999995 191.0000000000000000
  0.68000000000000005  1.27000000000000002  0.01000000000000000   6.9500000000000002
 52.60000000000000142 97.58000000000002672  0.29999999999999999 591.0000000000000000

FULL SELECTED-BASIS COEFFICIENT VECTOR:
             term             coefficient           component
      (Intercept)  3.49099769521145919526           Intercept
     Status_group  0.31931616176454014067    Binary indicator
      Age__linear  0.02019896381257176715    RCS linear basis
   Age__nonlinear  0.02354419637888384431 RCS nonlinear basis
    L_BMD__linear -6.72137008398592339375    RCS linear basis
 L_BMD__nonlinear  3.74726179936983960772 RCS nonlinear basis
    F_BMD__linear -1.44655189864167499358    RCS linear basis
 F_BMD__nonlinear  0.86099882640844982440 RCS nonlinear basis
       Ca__linear -0.02364854841750884534    RCS linear basis
    Ca__nonlinear  0.00682764368043894173 RCS nonlinear basis
      FPG__linear  0.06430036172276878959    RCS linear basis
   FPG__nonlinear -0.04328878922550941782 RCS nonlinear basis
       TG__linear -0.13500879246244840148    RCS linear basis
    TG__nonlinear  0.14124853149771443572 RCS nonlinear basis
     LDLC__linear -0.01395506241671804794    RCS linear basis
  LDLC__nonlinear -0.03190575323902415661 RCS nonlinear basis
      VD3__linear -0.00440138407042153530    RCS linear basis
   VD3__nonlinear  0.00395609311088031528 RCS nonlinear basis
       OC__linear -0.00823859809859250371    RCS linear basis
    OC__nonlinear  0.00396834202320646943 RCS nonlinear basis
      CTX__linear -0.00085485947367034212    RCS linear basis
   CTX__nonlinear -0.00514632099185590407 RCS nonlinear basis
     P1NP__linear  0.00106087866549301022    RCS linear basis
  P1NP__nonlinear -0.00096873482087768295 RCS nonlinear basis

All coefficients are the original-unit PENALIZED prediction coefficients, not unpenalized inferential effects.
Do not interpret an RCS linear coefficient alone as the overall clinical association or calculate one constant per-unit OR for a nonlinear predictor.
No ordinary postselection Wald confidence intervals or P values have been created.
The fitted model was neither refitted nor multiplied by a calibration slope. Research use only; external validation remains necessary.
