-
Notifications
You must be signed in to change notification settings - Fork 3
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
chi square for 1 ~ var1 + var2 #49
Comments
Each variable is treated separately. The tests would be 0 ~ var1 and 0 ~ var2 and the results pasted together. The package doesn't have a definition for using a 0 like that (although it could if you'd like to help me define expected behaviour). It does support a '1'.
First this assumes the default table transform Now one can always write their own transform if something else is desired. So, the question becomes when you typed the formula |
I remember now, the behaviour to do a Chi^2 test in this case was requested to be disabled. |
thanks for the quick and exhaustive reply! Typo on my side, What's the null for numerical variables then? It seems difficult to define a consistent null across numerical/categorical variables without stratification. Why not go for differences? |
The null hypothesis with stratification for numeric variables is that means are equal. Without stratification, it would be like a one-sample t-test (one-sided or two-sided hypothesis) and we would have to enter an known mean. If you're suggesting to add a function that tests the hypothesis that bili is less than or equal to 0 for those with Stage 1, to me it makes more sense to conduct a separate test after subsetting the data. I think when these types of descriptive tables are created, generally people are trying to have a better sense of their subjects and do not know the information like mean bili levels beforehand. Also, displaying results in a clear and efficient manner is another issue to think about. The p-value can be displayed under the test statistic, but the hypothesis being tested would have to be on a new row to avoid confusion. If testing for only one hypothesis, there would only be one p-value under the test statistic column in a table of many rows. I feel that it may look better if presented in its own separate table, along with all the other information that is provided from separate t-test like df, t-statistic, confidence interval..etc. |
Generally a biomedical paper will have 3 tables, 1st is demographics (i.e. was randomization good and define the population of interest), 2nd is case/controls (what were the observed outcomes and differences) and 3rd is model results (how good does a given model perform). The |
Hey,
absolutely love the package, can't wait for the JSS article! One quick question: When I do not have strata in the table, e.g. using the formula 0 ~ var1 + var2, what exactly are the the null hypotheses tested by hmisc? How do I suppress testing globally?
The text was updated successfully, but these errors were encountered: