Learn R Programming

⚠️There's a newer version (4.6.24) of this package.Take me there.

doBy

Groupwise Statistics, LSmeans, Linear Contrasts, Utilities

  1. Facilities for working with grouped data: 'do' something to data stratified 'by' some variables.
  2. LSmeans (least-squares means), general linear contrasts.
  3. Miscellaneous utilities
  4. Miscellaneous datasets

Author: Søren Højsgaard, Ulrich Halekoh

Online documentation

https://hojsgaard.github.io/doBy

Development site

https://github.com/hojsgaard/doBy

CRAN page:

https://cran.r-project.org/web/packages/doBy/index.html

Further info at:

http://people.math.aau.dk/~sorenh/software/doBy/

Copy Link

Version

Install

install.packages('doBy')

Monthly Downloads

356,484

Version

4.6.21

License

GPL (>= 2)

Last Published

April 29th, 2024

Functions in doBy (4.6.21)

by_scale

Scale a dataframe or matrix
generate_data_list

Generate data list
model_stability_glm

Model stability for glm objects
formula_ops

Formula operations and coercion.
data-budworm

Budworm data
data_cad

Coronary artery disease data
firstlastobs

Locate the index of the first/last unique value
dietox

Growth curves of pigs in a 3x3 factorial experiment
fev

Forced expiratory volume in children
milkman

Milk yield data for manually milked cows.
descStat

Computing simple descriptive statistics of a numeric vector.
data-mathmark

Mathematics marks for students
linest-get

Auxillary functions for computing lsmeans, contrasts etc
get_formulas

Get formulas from model_stability_glm_class object
recover_pca_data

Recover data from principal component analysis
crime_rate

crimeRate
linest

Compute linear estimates
linest-matrix

Linear estimates matrix
internal

Internal functions for the doBy package
haldCement

Heat development in cement under hardening.
ls-means

Compute LS-means (aka population means or marginal means)
interaction-plot

Two-way interaction plot
split_byrow_bycol

Split matrix or dataframe into list
scale_df

Scaling numerical values
parseGroupFormula

Extract components from a formula with "conditioning bar"
plot_lm

Plot linear model object
tidy-linest

Tidy a linest object
renameCol

Rename columns in a matrix or a dataframe.
sub_seq

Find sub-sequences of identical elements in a vector.
cv_glm_fitlist

Cross-validation for list of glm objects
.rhsf2list

Convert right hand sided formula to a list
section_fun

Section a function and set default values in function
cropyield

Yield from Danish agricultural production of grain and root crop.
is-estimable

Determines if contrasts are estimable.
truncate0

Truncate values in a matrix / vector to zero if they are below a certain threshold.
esticon

Contrasts for lm, glm, lme, and geeglm objects
which.maxn

Where are the n largest or n smallest elements in a numeric vector ?
mb_summary

Fast summary of microbenchmark object
matrix_op

Matrix operations based on matching dimensions
nir_milk

nir_milk
data-personality

Personality traits
potatoes

Weight and size of 20 potatoes
prostate

Prostate Tumor Gene Expression Dataset
expr_to_fun

Convert expression into function object.
taylor

Taylor expansion (one dimension)
null-basis

Finds the basis of the (right) null space.
recodeVar

Recode values of a vector
fatacid

Fish oil in pig food
tidy-esticon

Tidy an esticon object
timeSinceEvent

Calculate "time since event" in a vector.
by-lmby

List of lm objects with a common model
by-sample

Sampling from a data frame
codstom

Diet of Atlantic cod in the Gulf of St. Lawrence (Canada)
breastcancer

Gene expression signatures for p53 mutation status in 250 breast cancer samples
by-order

Ordering (sorting) rows of a data frame
by-split

Split a data frame
binomial_to_bernoulli_data

Convert binomial data to bernoulli data
crimeRate

crimeRate
bquote_fun_list

Backquote a list of functions
carcass

Lean meat contents of 344 pig carcasses
by-lapply

Formula based version of lapply and sapply
chr_to_matrix

Character vector to matrix
crickets

crickets data
NIRmilk

NIRmilk
by-subset

Finds subsets of a dataframe which is split by variables in a formula.
by-summary

Function to calculate groupwise summary statistics
beets

beets data
by-transform

Function to make groupwise transformations