fit_lme {ceas} | R Documentation |
Estimate mean and confidence intervals using a mixed-effects model
Description
Estimates mean and standard deviation of energetics or rates with replicates as the random-effect
Usage
fit_lme(
data_col,
input,
group_colname = "exp_group",
rep_colname = "replicate"
)
Arguments
data_col |
The column name of the ATP measure ("ATP_basal_resp", "ATP_max_resp", "ATP_basal_glyc", "ATP_max_glyc") or rate measure ("OCR", "ECAR") |
input |
The dataset containing |
group_colname |
The column containing experimental group names |
rep_colname |
The column containing replicate IDs |
Value
an lme4::lmer
mixed effects model
Examples
rep_list <- system.file("extdata", package = "ceas") |>
list.files(pattern = "*.xlsx", full.names = TRUE)
seahorse_rates <- read_data(rep_list, sheet = 2)
partitioned_data <- partition_data(seahorse_rates)
energetics <- get_energetics(partitioned_data, ph = 7.4, pka = 6.093, buffer = 0.1)
fit_lme("ATP_max_glyc", energetics)
[Package ceas version 1.3.0 Index]