# tabgee

Example Dataset for tab Package

Format P-values for Functions in the tab Package

Example Dataset for tab Package

Generate Summary Table for Fitted Generalized Estimating…

Generate Summary Table for Fitted Generalized Linear Model…

Generate Summary Table Comparing Group Medians

: Generate Summary Table for Fitted Generalized Estimating…

: Generate Summary Table for Fitted Generalized Estimating…

Invandomed/tab: Create Summary Tables for Statistical Reports

Creates table summarizing a GEE model fit using thegeefunction [1].

Character vector specifying what columns to include. Choices for each element aren,events(for binary outcomes)beta,se,beta.se,beta.betaci,betaci,or,or.orci,orci,z, andp.

Logical value for whether robust standard errors should be used for inference.

Character vector with labels for thexvariables and their levels. Often useful to leave asNULLfirst, see how the table looks, and then re-run with labels where they need to be.

Logical value for whether to display factor variables in compressed format, with variable names omitted and levels not indented. Can also be binary to compress binary factor variables only.

Logical value for whether to omit reference groups for factor variables. Can also be binary to omit reference groups for binary factor variables only.

as one row for each of the non-reference group levels, as opposed to one row for the variable name and one row for each of the levels including the reference group.

Data frame containing variables passed togeeto createfit. Only needs to be specified when one or more of the predictors is a factor variable andcompres.factors = FALSE.

Character string with separator to place between lower and upper bound of confidence intervals. Typically-or,.

Logical value for whether to format table so it is ready for printing in LaTeX viaxtableorkable.

Numeric value specifying number of decimal places for numbers other than p-values.

Numeric value specifying number of decimal places for p-values. Can be a vector if you want the number of decimals to depend on what range the p-value is in. Seep.cuts.

Numeric value or vector of cutpoints to control number of decimal places for p-values. For example, by defaultp.cuts = 0.1andp.decimals = c(2, 3), meaning p-values in the range [0.1, 1] are printed to 2 decimal places while p-values in the range [0, 0.1) are printed to 3.

Numeric value specifying cutpoint beneath which p-values appear as p.lowerbound.

Logical value for whether p-values should appear with leading 0s before the decimal point.

Logical value for whether p-values that round to 1 should appear as0.99(or similarly depending onp.decimalsandp.cuts) rather than 1.

Character string with desired heading for first column of table, in case you prefer something other thanVariable.

Logical value for whether to write a .html file with the table to the current working directory.

Character string specifying the name of the .html file that gets written ifprint.html = TRUE.

Interaction and polynomial terms are compatible withtabgee. If interaction terms are included, the table will be formatted a little differently. Basically including an interaction is equivalent to settingbasic.form = TRUE. All variable names and levels will be exactly as they appear when you runsummary(fit), wherefitis the object returned from a call togee.

Character matrix with table summarizing the fitted GEE.

If you want to paste your tables into Microsoft Word, you can use either of these approaches:

Use thewrite.cbfunction inKmisc[2]. If your table is stored in a character matrix namedtable1, usewrite.cb(table1)to copy the table to your clipboard. Paste the result into your document, then highlight the text and go toInsert – Table – Convert Text to Table… OK.

Setprint.html = TRUE. This will result in a .html file being written to your current working directory. When you open this file, you will see a (hopefully) nice-looking table that you can copy and paste into your document. You can control the name of this file withhtml.filename.

If you want to use LaTeX, R Markdown, knitr, Sweave, etc., setlatex = TRUE. Then, you can pass the returned object toxtableorkablefor printing. Forxtable, you may have to setsanitize.text.function = identitywhen printing.

1. Carey, V.J. (2015). gee: Generalized Estimation Equation Solver. R package version 4.13-19. Ported to R by Thomas Lumley and Brian Ripley.

2. Dahl, D.B. (2016). xtable: Export Tables to LaTeX or HTML. R package version 1.8-2,

3. Ushley, K. (2013). Kmisc: Kevin Miscellaneous. R package version 0.5.0.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Load in sample dataset and convert to long format

GEE: Blood pressure at 1, 2, and 3 months vs. predictors

GEE: High blood pressure at 1, 2, and 3 months vs. predictors. Display

factors in compressed format

vandomed/tab documentation built on March 19, 2018, 7:02 a.m.

Related totabgeeinvandomed/tab…vandomed/tab indexREADME.mdR Package DocumentationBrowse R PackagesWe want your feedback!Note that we cant provide technical support on individual packages. You should contact the package authors for that.

What can we improve?The page or its content looks wrongI cant find what Im looking forI have a suggestionOtherExtra info (optional)SubmitImprove this pageEmbedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, readEmbedding Snippets.