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

Problem with numeric variable #9

Closed
aquintela opened this issue Oct 30, 2018 · 5 comments
Closed

Problem with numeric variable #9

aquintela opened this issue Oct 30, 2018 · 5 comments

Comments

@aquintela
Copy link

@aquintela 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
Copy link
Owner

@ewenharrison ewenharrison commented Nov 2, 2018

Loading

@aquintela
Copy link
Author

@aquintela 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!

Loading

@aquintela aquintela closed this Nov 2, 2018
@ewenharrison
Copy link
Owner

@ewenharrison 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)

Loading

@ewenharrison ewenharrison reopened this Nov 6, 2018
@aquintela
Copy link
Author

@aquintela aquintela commented Nov 6, 2018

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

Thank you very much. Great Job!

Loading

@alansz
Copy link

@alansz alansz commented Dec 12, 2019

Reopening this. cont_cut works great with summary_factorlist, but doesn't appear to work with finalfit. Can it?

Loading

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

Successfully merging a pull request may close this issue.

None yet
3 participants