innerchem: innerchem

View source: R/chemlm.R

innerchemR Documentation

innerchem

Description

Choose regression

Usage

innerchem(
  data,
  outcome,
  value = "value",
  confound = NULL,
  family = "gaussian",
  type = "filter",
  mixed = F,
  id = NULL,
  weights = NULL,
  resid = F,
  corstr1 = "independence"
)

Arguments

data

dataset

outcome

character outcome variable (string format)

value

column name for value (string format)

confound

character vector of confound variable (default is null)

family

regression family (default is linear model)

type

Whether to return only chemical effect (default is filter)

mixed

Whether to run random intercept model

id

id variable name

weights

weights variable name

resid

whether to output residuals

Details

innerchem Run regression model for chemical data

This is a function to run a single regression model for chemical data

Examples

data(simchemdat)
# limit to one chemical
dat1 <- filter(simchemdat, chem == "chem1")
res <- innerchemlm(dat1, outcome = "out")

kralljr/chemregr documentation built on Nov. 28, 2022, 3:01 p.m.