test_year_bool: Test whether something is associated with time

View source: R/plot.R

test_year_boolR Documentation

Test whether something is associated with time

Description

Fits a logistic regression model with glm to use year to predict proportion of a logical variable is TRUE, and tests whether beta is 0.

Usage

test_year_bool(pubs, col_use, preprints = TRUE)

Arguments

pubs

A data frame with at least these columns:

journal

Name of the journal of the paper.

year

Year when the paper was published.

There must be one row per publication or per method or species for each title if faceting by those. If facetting, then a column whose name is the value in 'facet_by' must be present.

col_use

Which logical variable to plot. Tidyeval is supported.

preprints

Logical, whether preprints should be included. Defaults to 'TRUE' to include preprints.

Value

A glm object is returned invisibly. The summary is printed to screen


pachterlab/museumst documentation built on March 10, 2024, 4:21 p.m.