AgentStack
SKILL verified MIT Self-run

Broom

skill-leolin990405-r-analytics-skill-broom · by LeoLin990405

R broom package for tidying model outputs. Use for converting statistical model results to tidy data frames.

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-leolin990405-r-analytics-skill-broom

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Broom? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

broom

Convert statistical objects into tidy data frames.

Core Functions

library(broom)

# Fit a model
model %
  group_by(category) %>%
  nest() %>%
  mutate(
    model = map(data, ~ lm(y ~ x, data = .x)),
    tidied = map(model, tidy),
    glanced = map(model, glance)
  )

# Extract results
models %>%
  unnest(tidied)

models %>%
  unnest(glanced)

Augment for Diagnostics

model %
  filter(.cooksd > 4 / nrow(df))

Custom Tidiers

# For unsupported models, create custom tidier
tidy.my_model <- function(x, ...) {

  tibble(
    term = names(coef(x)),
    estimate = coef(x),
    std.error = sqrt(diag(vcov(x)))
  )
}

Supported Models

# broom supports 100+ model types including:
# - lm, glm, nls
# - survival (coxph, survfit)
# - lme4 (lmer, glmer)
# - mgcv (gam)
# - MASS (rlm, glm.nb)
# - stats (t.test, cor.test, chisq.test)
# - And many more...

# Check if model is supported
methods(tidy)
methods(glance)
methods(augment)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.