Skip to contents

Print coefficients of each model in the enspls.fit object.

Usage

# S3 method for enspls.fit
print(x, ...)

Arguments

x

An object of class enspls.fit.

...

Additional parameters for print.

See also

See enspls.fit for fitting ensemble sparse partial least squares regression models.

Author

Nan Xiao <https://nanx.me>

Examples

data("logd1k")
x <- logd1k$x
y <- logd1k$y

set.seed(42)
fit <- enspls.fit(
  x, y,
  reptimes = 5, maxcomp = 3,
  alpha = c(0.3, 0.6, 0.9)
)
print(fit)
#> Coefficients of the Models by Ensemble Sparse Partial Least Squares
#> ---
#>                             [,1]         [,2]         [,3]          [,4]
#> BalabanJ            -0.043615048 -0.070476160 -0.061234111 -0.0641194287
#> BertzCT             -0.010797407 -0.010380918 -0.014190111 -0.0198473677
#> Chi0                 0.034719388  0.031396910  0.031244743  0.0305194922
#> Chi0n                0.053961369  0.051389288  0.054495519  0.0524801055
#> Chi0v                0.053701577  0.051940514  0.053866466  0.0534589673
#> Chi1                 0.051776232  0.049156542  0.049348357  0.0492213616
#> Chi1n                0.070459184  0.069096237  0.072714905  0.0727060040
#> Chi1v                0.044723121  0.043485995  0.047373453  0.0501593866
#> Chi2n                0.044969369  0.049246878  0.053608909  0.0505554796
#> Chi2v               -0.007655968 -0.004618584 -0.001476135  0.0001540116
#> Chi3n                0.032584667  0.042587170  0.046107374  0.0415386369
#> Chi3v               -0.028277116 -0.022984653 -0.021257238 -0.0203092032
#> Chi4n                0.025069486  0.035056020  0.037250699  0.0377062265
#> Chi4v               -0.032725942 -0.028311655 -0.028345799 -0.0254204075
#> EState_VSA1         -0.145952322 -0.151990047 -0.160770607 -0.1525700022
#> EState_VSA10        -0.156900443 -0.168802906 -0.175239253 -0.1722320471
#> EState_VSA11        -0.127792171 -0.135963476 -0.143448807 -0.1529079518
#> EState_VSA2         -0.088764258 -0.081331379 -0.090132085 -0.0733057615
#> EState_VSA3          0.056790068  0.028421271  0.053648385  0.0386607294
#> EState_VSA4          0.063669587  0.074797750  0.074053361  0.0699041874
#> EState_VSA5          0.076840942  0.113331436  0.116703240  0.1013286787
#> EState_VSA6         -0.039520870 -0.054418432 -0.060441879 -0.0391363977
#> EState_VSA7          0.167588096  0.158416601  0.168272101  0.1618998057
#> EState_VSA8          0.009235939  0.004258386 -0.006701922 -0.0011150675
#> EState_VSA9          0.160639733  0.170068653  0.176254590  0.1714440988
#> ExactMolWt           0.050748220  0.048487236  0.047997890  0.0454753788
#> FractionCSP3        -0.002537413  0.016775756  0.014177552  0.0000000000
#> HallKierAlpha        0.019451372  0.000000000  0.000000000  0.0329693176
#> HeavyAtomCount       0.041665347  0.039779625  0.039215273  0.0389117918
#> HeavyAtomMolWt       0.049142955  0.047099309  0.045859934  0.0431088851
#> Ipc                  0.057240507  0.060688810  0.069024848  0.0694421064
#> Kappa1               0.038204987  0.032402483  0.032511070  0.0348008587
#> Kappa2               0.073454618  0.061351458  0.062538464  0.0699833246
#> Kappa3               0.068769152  0.053787212  0.048842217  0.0663792137
#> LabuteASA            0.050468473  0.048957140  0.047963605  0.0492392904
#> MaxAbsEStateIndex   -0.058201076 -0.046954270 -0.035764073 -0.0459235492
#> MaxEStateIndex      -0.058201076 -0.046954270 -0.035764073 -0.0459235492
#> MinAbsEStateIndex    0.050724276  0.044527421  0.044215313  0.0353840523
#> MinEStateIndex       0.080735399  0.074187812  0.072888633  0.0724654251
#> MolMR                0.064441013  0.060992387  0.061907090  0.0617893424
#> MolWt                0.050700489  0.048453503  0.047956295  0.0454522770
#> NumValenceElectrons  0.041901095  0.039028411  0.040413395  0.0398859275
#> PEOE_VSA1           -0.123885717 -0.111986458 -0.128388290 -0.1335502496
#> PEOE_VSA10           0.060135647  0.072095820  0.042111810  0.0611046246
#> PEOE_VSA11           0.027518533  0.000000000  0.054256529  0.0593889088
#> PEOE_VSA12          -0.070409371 -0.085305819 -0.078339953 -0.0775848326
#> PEOE_VSA13           0.071124088  0.073838570  0.087264498  0.0780882742
#> PEOE_VSA14          -0.059283402 -0.052884362 -0.059018175 -0.0639531460
#> PEOE_VSA2           -0.135631007 -0.136699485 -0.158100226 -0.1453559333
#> PEOE_VSA3           -0.015399543 -0.030536558 -0.023616048 -0.0258053476
#> PEOE_VSA4            0.089159585  0.082572159  0.101865179  0.1083556038
#> PEOE_VSA5            0.000000000  0.000000000  0.000000000  0.0000000000
#> PEOE_VSA6            0.252455157  0.257218113  0.264862957  0.3016795122
#> PEOE_VSA7            0.131757300  0.126559513  0.126970928  0.1081498903
#> PEOE_VSA8           -0.251591255 -0.244659553 -0.247195649 -0.2892456024
#> PEOE_VSA9            0.093581834  0.074355909  0.075437882  0.0803304497
#> SMR_VSA1            -0.045809417 -0.040299095 -0.050701107 -0.0532047159
#> SMR_VSA10            0.025671513  0.036747988  0.020329048  0.0236814814
#> SMR_VSA2             0.000000000  0.000000000  0.000000000  0.0000000000
#> SMR_VSA3            -0.196156845 -0.207343129 -0.205718468 -0.1978050051
#> SMR_VSA4             0.086514311  0.092000949  0.090979644  0.1135589734
#> SMR_VSA5             0.144746921  0.144103173  0.158124866  0.1643202372
#> SMR_VSA6            -0.086355302 -0.087439103 -0.084443620 -0.0980728660
#> SMR_VSA7             0.021803034  0.011365422 -0.006054515  0.0030932243
#> SMR_VSA9             0.164334759  0.153864976  0.180528755  0.1579959854
#> SlogP_VSA1          -0.045042683 -0.031673412 -0.087011109 -0.0688301411
#> SlogP_VSA10          0.119767503  0.115394919  0.103222595  0.0843745870
#> SlogP_VSA11          0.114675123  0.110717941  0.114633271  0.0846142758
#> SlogP_VSA12          0.103280911  0.095740332  0.101496317  0.1105220578
#> SlogP_VSA2          -0.207711269 -0.202806412 -0.200423733 -0.2013781453
#> SlogP_VSA3          -0.153164458 -0.151392486 -0.134059624 -0.1516867090
#> SlogP_VSA4           0.080989430  0.078481646  0.076140508  0.0736978562
#> SlogP_VSA5           0.174022630  0.173399624  0.191735830  0.2059561988
#> SlogP_VSA6           0.136169116  0.133023697  0.110695001  0.1313060684
#> SlogP_VSA7           0.077780951  0.068859412  0.083787537  0.0846865586
#> SlogP_VSA8           0.000000000  0.000000000  0.067225424  0.0563976493
#> TPSA                -0.220618737 -0.215277058 -0.233074352 -0.2170641606
#> VSA_EState10         0.093743521  0.084141143  0.095789368  0.1014189884
#> VSA_EState8          0.089001823  0.076620959  0.083263325  0.0777088146
#> VSA_EState9         -0.089786907 -0.081994686 -0.094262874 -0.0921319769
#>                             [,5]
#> BalabanJ            -0.073894883
#> BertzCT             -0.007687107
#> Chi0                 0.032319300
#> Chi0n                0.052919408
#> Chi0v                0.056854869
#> Chi1                 0.048305879
#> Chi1n                0.069904194
#> Chi1v                0.051215760
#> Chi2n                0.048557618
#> Chi2v                0.005050211
#> Chi3n                0.038590608
#> Chi3v               -0.016430846
#> Chi4n                0.028264216
#> Chi4v               -0.022830716
#> EState_VSA1         -0.151918402
#> EState_VSA10        -0.163913222
#> EState_VSA11        -0.114487283
#> EState_VSA2         -0.074990673
#> EState_VSA3          0.027238867
#> EState_VSA4          0.081673528
#> EState_VSA5          0.119173308
#> EState_VSA6         -0.062270377
#> EState_VSA7          0.169929249
#> EState_VSA8         -0.008508467
#> EState_VSA9          0.169614152
#> ExactMolWt           0.053132588
#> FractionCSP3         0.000000000
#> HallKierAlpha        0.000000000
#> HeavyAtomCount       0.039291679
#> HeavyAtomMolWt       0.051773716
#> Ipc                  0.040666065
#> Kappa1               0.035993825
#> Kappa2               0.066238470
#> Kappa3               0.056805777
#> LabuteASA            0.050833015
#> MaxAbsEStateIndex   -0.039681288
#> MaxEStateIndex      -0.039681288
#> MinAbsEStateIndex    0.058219064
#> MinEStateIndex       0.090836706
#> MolMR                0.065637066
#> MolWt                0.053101413
#> NumValenceElectrons  0.038876330
#> PEOE_VSA1           -0.131939533
#> PEOE_VSA10           0.063132746
#> PEOE_VSA11           0.000000000
#> PEOE_VSA12          -0.064913191
#> PEOE_VSA13           0.062907184
#> PEOE_VSA14          -0.053503851
#> PEOE_VSA2           -0.123394883
#> PEOE_VSA3           -0.021138001
#> PEOE_VSA4            0.044285049
#> PEOE_VSA5            0.000000000
#> PEOE_VSA6            0.269371381
#> PEOE_VSA7            0.118261626
#> PEOE_VSA8           -0.241824460
#> PEOE_VSA9            0.084102621
#> SMR_VSA1            -0.042033373
#> SMR_VSA10            0.054396319
#> SMR_VSA2             0.000000000
#> SMR_VSA3            -0.223644660
#> SMR_VSA4             0.086073286
#> SMR_VSA5             0.152844318
#> SMR_VSA6            -0.100483543
#> SMR_VSA7             0.017135164
#> SMR_VSA9             0.142266776
#> SlogP_VSA1          -0.055774803
#> SlogP_VSA10          0.082997064
#> SlogP_VSA11          0.088648633
#> SlogP_VSA12          0.112241959
#> SlogP_VSA2          -0.204690587
#> SlogP_VSA3          -0.156349706
#> SlogP_VSA4           0.077452104
#> SlogP_VSA5           0.198178112
#> SlogP_VSA6           0.127587128
#> SlogP_VSA7           0.000000000
#> SlogP_VSA8           0.000000000
#> TPSA                -0.214509241
#> VSA_EState10         0.084382079
#> VSA_EState8          0.077845374
#> VSA_EState9         -0.085217775