
我正在使用該包在 R 中運行一堆模型caret
。該套件是許多建模技術和方法的介面。
我想將每個模型的某些輸出轉換為 Latex 程式碼,但我正在尋找某種自動程式或模板以使其看起來很漂亮。我希望每個模型都有一個字母大小的頁面。以下是 R 程式的兩個主要輸出
Call:
NULL
Deviance Residuals:
Min 1Q Median 3Q Max
-0.0552 -0.0508 -0.0508 -0.0508 3.6831
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -6.65336 0.02520 -264.020 <2e-16 ***
H3K27me3 -0.12830 0.11265 -1.139 0.2547
H3K36me3 0.16695 0.07527 2.218 0.0266 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 28404 on 1427599 degrees of freedom
Residual deviance: 28397 on 1427597 degrees of freedom
AIC: 28403
Number of Fisher Scoring iterations: 9
和
Generalized Linear Model
1427600 samples
12 predictor
2 classes: 'nbp', 'bp'
No pre-processing
Resampling: Cross-Validated (10 fold, repeated 10 times)
Summary of sample sizes: 1284840, 1284839, 1284840, 1284840, 1284840, 1284840, ...
Resampling results
ROC Sens Spec ROC SD Sens SD Spec SD
0.4896863 1 0 0.01090207 0 0
我特別喜歡 R 輸出的格式,並且想知道是否有辦法在 Latex 中複製此佈局(或其他可行的佈局)。
*如果以上所有資訊無法容納 1 張 A4 頁,我可以取出一些我的結果並不真正需要的資訊。
我知道stargazer
R 包,但是它看起來與caret
建模包不相容。