Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow omitting model names. #161

Open
labreumaia opened this issue Sep 1, 2020 · 3 comments
Open

Allow omitting model names. #161

labreumaia opened this issue Sep 1, 2020 · 3 comments

Comments

@labreumaia
Copy link

Firstly, thanks for such a thorough package.

I have a suggestion: could you implement the possibility of omitting model names? If you're printing a single model, it doesn't make sense to have "model 1" printed above it. I assume this could be easily implemented by allowing NA, NULL, or an empty character string as an option in custom.model.names.

Thanks!

@czucca
Copy link
Collaborator

czucca commented Sep 1, 2020

Hi there,

You can already do that with custom model names just passing ' ' on. However, you still have the two rows in the printout with nothing inside this time.

hope this helps,
C.

ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)
trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)
group <- gl(2, 10, 20, labels = c("Ctl","Trt"))
weight <- c(ctl, trt)
lm.D9 <- lm(weight ~ group)

library(texreg)

screenreg(lm.D9, custom.model.names = ' ')
======================
                      
----------------------
(Intercept)   5.03 ***
             (0.22)   
groupTrt     -0.37    
             (0.31)   
----------------------
R^2           0.07    
Adj. R^2      0.02    
Num. obs.    20       
======================
*** p < 0.001; ** p < 0.01; * p < 0.05

@labreumaia
Copy link
Author

labreumaia commented Sep 1, 2020 via email

@leifeld
Copy link
Owner

leifeld commented Sep 1, 2020

Thanks for the suggestion. I think this is a good idea. I'll put it on my to-do list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants