mat_tidy_keep_estimate: Remove reg details

mat_tidy_keep_estimateR Documentation

Remove reg details

Description

Remove reg details

Usage

mat_tidy_keep_estimate(df)

Arguments

df

data

Examples

library(purrr)
library(dplyr, warn.conflicts = FALSE)
library(tidyr)

iris_regs <- nest(iris, data=-Species) %>%
mutate(reg_out = map(data, ~lm(Petal.Width~Petal.Length, data=as_tibble(.)))) %>%
select(-data)

coefs_out <- mat_tidy_do(df=iris_regs)
mat_tidy_keep_estimate(coefs_out)
mat_tidy_keep_estimate(df= freeny)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.