mat_tidy_keep_estimate: Remove reg details

Description Usage Arguments Examples

Description

Remove reg details

Usage

1

Arguments

df

data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 Aug. 10, 2021, 11:01 a.m.