regress {bruceR} | R Documentation |

## Regression analysis.

### Description

NOTE: `model_summary`

is preferred.

### Usage

```
regress(
formula,
data,
family = NULL,
digits = 3,
robust = FALSE,
cluster = NULL,
test.rand = FALSE
)
```

### Arguments

`formula` |
Model formula. |

`data` |
Data frame. |

`family` |
[Optional] The same as in |

`digits` |
Number of decimal places of output. Defaults to |

`robust` |
[Only for *** |

`cluster` |
[Only for |

`test.rand` |
[Only for |

### Value

No return value.

### See Also

`print_table`

(print simple table)

`model_summary`

(highly suggested)

### Examples

```
## Not run:
## lm
regress(Temp ~ Month + Day + Wind + Solar.R, data=airquality, robust=TRUE)
## glm
regress(case ~ age + parity + education + spontaneous + induced,
data=infert, family=binomial, robust="HC1", cluster="stratum")
## lmer
library(lmerTest)
regress(Reaction ~ Days + (Days | Subject), data=sleepstudy)
regress(Preference ~ Sweetness + Gender + Age + Frequency +
(1 | Consumer), data=carrots)
## glmer
library(lmerTest)
data.glmm = MASS::bacteria
regress(y ~ trt + week + (1 | ID), data=data.glmm, family=binomial)
regress(y ~ trt + week + hilo + (1 | ID), data=data.glmm, family=binomial)
## End(Not run)
```

*bruceR*version 2023.9 Index]