Learn R Programming

GrowthCurveME (version 0.1.11)

growth_model_summary_table: Create a printable table of the summarized growth model result reporting

Description

This function creates a flextable object that can be used for documentation or Rmarkdown reports from the list object created by growth_curve_model_fit. The 'model_summary_long' data frame from the list object is used to generate the table.

Usage

growth_model_summary_table(
  growth_model_summary_list,
  font_name = "Albany AMT",
  font_size_header = 14,
  font_size_body = 12,
  use_knit_print = FALSE
)

Value

A flextable object of the 'model_summary_long' data frame.

Arguments

growth_model_summary_list

A list object created by the growth_curve_model_fit function.

font_name

A character string specifying the name of the font to use when rendering the table. Defaults to "Albany AMT". See font.

font_size_header

A numeric value specifying the size of the font for the header of the table. Defaults to 14. See fontsize.

font_size_body

A numeric value specifying the size of the font for the body of the table. Defaults to 12. See fontsize.

use_knit_print

A logical value to specify whether the flextable should be printed using knit_print function instead of the flextable object being returned. Defaults to FALSE.

See Also

growth_curve_model_fit

Examples

Run this code
# \donttest{
# Load example data (exponential data)
data(exp_mixed_data)
# Fit an mixed-effects growth model to the data
exp_mixed_model_summary <- growth_curve_model_fit(
data_frame = exp_mixed_data,
function_type = "exponential",
verbose = FALSE)
# Create flextable object of the growth model results
exp_model_table <- growth_model_summary_table(
growth_model_summary_list = exp_mixed_model_summary)
# Print the table in the view pane
exp_model_table
# }

Run the code above in your browser using DataLab