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

Problem with numeric variable #9

Closed
aquintela opened this Issue Oct 30, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@aquintela
Copy link

aquintela commented Oct 30, 2018

Hi,
I am using your package
I have a problema running
explanatory = c("x")
dependent = 'mort_5yr'
colon_s %>%
summary_factorlist(dependent, explanatory,
p=TRUE, add_dependent_label=TRUE)
if I use a numeric variable "x" with less than 6 values, the variable is considered as factor, and the test is a Chi-square, not a t-test

can you help me, please?

thank you very much in advance for your attention, and for your great package!

@ewenharrison

This comment has been minimized.

Copy link
Owner

ewenharrison commented Nov 2, 2018

@aquintela

This comment has been minimized.

Copy link
Author

aquintela commented Nov 2, 2018

Actually, we have some variables that can take ten values, but, finally, we only have 4 values. Anyway, we need to check if there exist mean differences using a t-test. I think that it would be interesting that the user could be select the minimal values for a factor.

Thank you very much for your help!

@aquintela aquintela closed this Nov 2, 2018

@ewenharrison

This comment has been minimized.

Copy link
Owner

ewenharrison commented Nov 6, 2018

This is now available in 0.8.8 Github version. Will go to CRAN soon.

devtools::install_github("ewenharrison/finalfit")
dependent = "mort_5yr"
explanatory = "sex"
colon_s %>% 
	summary_factorlist(dependent, explanatory)
colon_s %>% 
	summary_factorlist(dependent, explanatory, cont_cut = 0)

@ewenharrison ewenharrison reopened this Nov 6, 2018

@aquintela

This comment has been minimized.

Copy link
Author

aquintela commented Nov 6, 2018

I have just installed the last versión. It Works fine!

Thank you very much. Great Job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment