Giter VIP home page Giter VIP logo

psychbruce / brucer Goto Github PK

View Code? Open in Web Editor NEW
152.0 10.0 34.0 21.98 MB

๐Ÿ“ฆ BRoadly Useful Convenient and Efficient R functions that BRing Users Concise and Elegant R data analyses.

Home Page: https://psychbruce.github.io/bruceR/

License: GNU General Public License v3.0

R 100.00%
r r-package data-science data-analysis linear-regression linear-models multilevel-models anova toolbox statistics

brucer's Introduction

brucer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brucer's Issues

Help

Hello, thank you very much for your contribution and effort.

I am a beginner in using the R language. I managed to install the bruceR package with the help of various online resources. I would like to know if there are any tutorials available that can help me quickly get started with bruceR.

For example, I would like to learn how to convert certain text into word vectors or perform similarity calculations.

I'm sorry for the interruption. Best wishes to you.

Can't install bruceR

I cannot install bruceR. The warning seemed like Bug #4, but the soluation of Bug#04 was not work.
I had updated the R to the latest version 4.0.2, but the error still remained.

devtools::install_github("psychbruce/bruceR")
Downloading GitHub repo psychbruce/bruceR@HEAD

checking for file 'C:\Users\THINK\AppData\Local\Temp\RtmpSoK5KO\remotes48d859227c82\psychbruce-bruceR-eded61e/DESCRIPTION' ...
โˆš checking for file 'C:\Users\THINK\AppData\Local\Temp\RtmpSoK5KO\remotes48d859227c82\psychbruce-bruceR-eded61e/DESCRIPTION'

  • preparing 'bruceR':
    checking DESCRIPTION meta-information ...

    checking DESCRIPTION meta-information ...

โˆš checking DESCRIPTION meta-information

  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
  • building 'bruceR_0.5.1.tar.gz'

Installing package into โ€˜C:/Users/THINK/Documents/R/win-library/4.0โ€™
(as โ€˜libโ€™ is unspecified)

  • installing source package 'bruceR' ...
    ** using staged installation
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** byte-compile and prepare package for lazy loading
    Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
    there is no package called 'emmeans'
    Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
    ๅœๆญขๆ‰ง่กŒ
    ERROR: lazy loading failed for package 'bruceR'
  • removing 'C:/Users/THINK/Documents/R/win-library/4.0/bruceR'
    ้”™่ฏฏ: Failed to install 'bruceR' from GitHub:
    (็”ฑ่ญฆๅ‘Š่ฝฌๆขๆˆ)installation of package โ€˜C:/Users/THINK/AppData/Local/Temp/RtmpSoK5KO/file48d823453f6b/bruceR_0.5.1.tar.gzโ€™ had non-zero exit status

PROCESS()็š„ๆจกๅž‹ๆ่ฟฐ

Bruceๅ…ˆ็”Ÿๆ‚จๅฅฝ๏ผŒๅœจPROCESS()็š„่พ“ๅ‡บ็ป“ๆžœไธญ็š„ๆจกๅž‹็ผ–ๅทไธ€่กŒ
PROCESS Model Code : 14 (Hayes, 2018; www.guilford.com/p/hayes3)
ไธญ็š„็ฝ‘ๅ€ๅทฒ็ปๅคฑๆ•ˆไบ†๏ผŒ็Žฐๅœจๆ‰“ๅผ€ๅฎƒๅชไผš่ทณ่ฝฌๅˆฐIntroduction to Mediation, Moderation, and Conditional Process Analysis่ฟ™ๆœฌไนฆ็š„่ดญไนฆ้กต้ข๏ผŒๆˆ‘ไธ็Ÿฅ้“่ฟ™ไธช็ฝ‘้กตๅŽŸๆœฌ็š„ๅ†…ๅฎนๆ˜ฏไป€ไนˆ๏ผŒๆ‰€ไปฅ่ฟ™ไธชๆจกๅž‹็ผ–ๅทๅฐฑๆฒกๆœ‰ๆไพ›ๅฎž้™…็š„ๅ‚่€ƒไฟกๆฏใ€‚
ไปฅๅŠ๏ผŒbruceR็œŸ็š„ๆ˜ฏไธ€ไธช้žๅธธๅฎž็”จๅ’Œไพฟๆท็š„ๅทฅๅ…ท๏ผŒ่ฐข่ฐขไฝ ็š„่ดก็Œฎใ€‚

ๅ…ณไบŽMANOVA()ๅ‡ฝๆ•ฐๆ— ๆณ•ๅค„็†ๅˆ—ๅๅŒ…ๅซไธคไฝๆ•ฐ็š„ๆ•ฐๆฎ

ๆƒณ้—ฎไธ€ไธชๅ…ณไบŽMANOVA()ๅ‡ฝๆ•ฐ็š„้—ฎ้ข˜๏ผŒๆˆ‘็š„ๅฎž้ชŒๆ˜ฏไธ€ไธช้‡ๅคๆต‹้‡ไธคๅ› ็ด ็š„ไธ‰ๅ› ็ด ๆ–นๅทฎๅˆ†ๆžใ€‚ๅœจๆˆ‘ๅค„็†ๆˆ‘็š„ๅฎฝๆ•ฐๆฎ็š„ๆ—ถๅ€™๏ผŒๆˆ‘ๅ‘็Žฐๅฝ“ๆˆ‘็š„ๅˆ—ๅๆ˜ฏ๏ผˆsec_3_t1๏ผŒsec_3_t6๏ผŒsec_9_t1๏ผŒsec_9_t6๏ผ‰็š„ๆ—ถๅ€™่ƒฝๆญฃๅธธ่ฟ”ๅ›ž็ป“ๆžœ๏ผŒไฝ†ๆ˜ฏๅˆ—ๅๅ˜ๆˆ๏ผˆsec_4_t1๏ผŒsec_4_t6๏ผŒsec_10_t1๏ผŒsec_10_t6๏ผ‰็š„ๆ—ถๅ€™ๅฐฑไธ่ƒฝๆญฃๅธธ่ฟ่กŒไบ†ใ€‚ๆŠฅ้”™ๅŽŸๅ› ๆ˜ฏ๏ผšFailed to perform MANOVA.ใ€‚ๆƒณ้—ฎไธ€ไธ‹ๆ˜ฏๅฆๆ˜ฏๅ› ไธบๅˆ—ๅ็งฐ้‡Œๅ‡บ็Žฐไบ†ไธคไฝๆ•ฐๅฐฑไธ่ƒฝๆญฃๅธธ่ฟ่กŒๅ‡ฝๆ•ฐใ€‚
ๆˆ‘็š„ไปฃ็ ้ƒจๅˆ†ๅฆ‚ไธ‹
MANOVA(data = data,
dvs=paste(c(dvs[1], dvs[4]), collapse = ":"),
dvs.pattern="sec_(.)_(t.)",
between="disease",
within=c("section", "time"),
file = file.path(wide_format_dir, basename(file)))
ๆŠฅ้”™ๅฆ‚ไธ‹๏ผš
Note:
dvs="sec_4_t1:sec_10_t6" is matched to variables:
sec_4_t1, sec_4_t6, sec_10_t1, sec_10_t6

Error:
Failed to perform MANOVA.
Please follow the correct usage.
See: help(MANOVA)

ๆ•ฐๆฎ็š„ๅ‰ไบ”่กŒๆ ผๅผๅฆ‚ไธ‹
disease sec_4_t1 sec_4_t6 sec_10_t1 sec_10_t6
0 0.148010408 0.240479665 0.137365773 0.162679725
0 0.164722607 0.208784311 0.155697349 0.131884651
0 0.128987875 0.155202186 0.123803308 0.107702303
0 0.14838339 0.212513358 0.146451598 0.19047774
0 0.134528406 0.208767676 0.108596354 0.130336021

receiving error "object 'magrittr_pipe' not found"

When I run the following code,

lm1=lm(Temp ~ Month + Day, data=airquality)
lm2=lm(Temp ~ Month + Day + Wind + Solar.R, data=airquality)
model_summary(lm1)
model_summary(lm2)
model_summary(list(lm1, lm2))
model_summary(list(lm1, lm2), std=TRUE, digits=2)
model_summary(list(lm1, lm2), file="OLS Models.doc")

I received the following error
Error in output %>% stringr::str_replace_all("ย ", "") %>% stringr::str_replace_all("-", :
object 'magrittr_pipe' not found

Can you please help?

dplyr 1.0.8

We are about to release dplyr 1.0.8 and this currently make this package fail with:

# bruceR

<details>

* Version: 0.7.3
* GitHub: https://github.com/psychbruce/bruceR
* Source code: https://github.com/cran/bruceR
* Date/Publication: 2021-11-05 17:40:01 UTC
* Number of recursive dependencies: 202

Run `cloud_details(, "bruceR")` for more info

</details>

## Newly broken

*   checking examples ... ERROR
    ```
    Running examples in โ€˜bruceR-Ex.Rโ€™ failed
    The error most likely occurred in:
    
    > ### Name: Alpha
    > ### Title: Reliability analysis (Cronbach's alpha and McDonald's omega).
    > ### Aliases: Alpha
    > 
    > ### ** Examples
    > 
    > # ?psych::bfi
    > Alpha(bfi, "E", 1:5)  # "E1" & "E2" should be reverse scored
    Warning: replacing previous import โ€˜ggplot2::enquoโ€™ by โ€˜jmvcore::enquoโ€™ when loading โ€˜jmvโ€™
    Error in jmvcore::enquo(vars) : object 'rlang_enquo' not found
    Calls: Alpha -> <Anonymous> -> <Anonymous> -> <Anonymous>
    Execution halted
    ```

This is due to this problem in jmvcore: jamovi/jmvcore#19 possibly fixed by jamovi/jmvcore#20

help

is this package can only be installed in R version>4.0.0?

Error in PROCESS when doing moderated multilevel mediation

Hello Han-Wu-Shuang Bao,

first let me say that I am amazed at how Your package works. It is exactly what I was searching for for my masters thesis.

I was trying to do a moderated multilevel mediation (1-1-1), where the moderator had an effect on all paths:
PROCESS( data_long_labs, y = "HO_sat", x = "HO_isol", meds = "HO_self", clusters = "ID", mods = "HO_cont_sup", mod.path = "all", nsim = 10)

The first part is being computed without problems, but when it starts to work on the simulations, it ends with the message:
Error in .rowNamesDF<-(x, value = value) : invalid 'row.names' length

I tried it with a normal mediation at a single point in time, the multilevel mediation without the moderation and the moderation having an influence only on special paths + combinations of mod.path types. All of that worked perfectly fine, only the computation of the effect on all paths doesn't, also when supplied by c("x-y", "x-m", "m-y"), or even c("m-y", "x-y)".
I updated my R, RStudio and all packages and closed the R-Session multiple times.

I hope, that You can solve this problem. I will be happy to help You if I can.
Greetings from Germany!
Richard

The Traceback returned:
11.stop("invalid 'row.names' length")
10..rowNamesDF<-(x, value = value)
9.row.names<-.data.frame(*tmp*, value = gsub(":", " x ", row.names(dp1)))
8.row.names<-(*tmp*, value = gsub(":", " x ", row.names(dp1)))
7.interaction_F_test(model, data = data, data.name = data.name)
6.interaction_test(model, data = data.c, data.name = "data.c")
5.process_mod(model.y0, model.y, data.c, x, y, mod1, mod2, mod1.val,
mod2.val, mod.type, x.label = "X", y.label = "Y", eff.tag = "(Conditional Direct Effects [c'] of X on Y)",
nsmall, file = file) at #1
4.eval(parse(text = text), envir = parent.frame())
3.eval(parse(text = text), envir = parent.frame())
2.Run(run.process.mod.xy(eff.tag = "(Conditional Direct Effects [c'] of X on Y)"))
1.PROCESS(data_long_labs, y = "HO_sat", x = "HO_isol", meds = "HO_self",
clusters = "ID", mods = "HO_cont_sup", mod.path = c("m-y",
"x-y"), nsim = 5)

About ANCOVA

Will the bruceR support the Covariance analysis (ANCOVA) ๏ผŸ

่ฏท้—ฎๅšๅฎŒPROCESSๅ‡ฝๆ•ฐ็š„ไธญไป‹ๅˆ†ๆž๏ผŒๅฐคๅ…ถๆ˜ฏๅคšไธญไป‹ๅ˜้‡็š„ไธญไป‹ๅˆ†ๆž๏ผŒๅฆ‚ไฝ•่ฟ›่กŒๅฏ่ง†ๅŒ–

่ฏท้—ฎๅšๅฎŒPROCESSๅ‡ฝๆ•ฐ็š„ไธญไป‹ๅˆ†ๆž๏ผŒๅฐคๅ…ถๆ˜ฏๅคšไธญไป‹ๅ˜้‡็š„ไธญไป‹ๅˆ†ๆž๏ผŒๅฆ‚ไฝ•่ฟ›่กŒๅฏ่ง†ๅŒ–๏ผŒ็”จๅ“ชไธชๅ‡ฝๆ•ฐๅฏไปฅๅš๏ผŸ

granger_test() can support HC and HAC robust errors with simple modification

Hi,

By allowing for additional arguments (the "..." syntax in functions), one can use robust standard errors for the test.

This can be done by including ", ..." to the 'granger_test()' function on line 1 and on line 24.
Example code attached below.

Best regards

Tomas

library(sandwich)
library(lmtest)
library(bruceR)

original function

?granger_test

Prepare HAC robust version of the test : start

granger_test_HAC <- function (formula, data, lags = 1:5, test.reverse = TRUE, file = NULL, ...) # changed here
{
installed("lmtest")
res = data.frame(Lag = lags, D1 = "", D2 = "", D12 = "")
names(res)[2:4] = c("Hypothesized Direction", "Reverse Direction",
"Hypothesized (vs. Reverse)")
if (test.reverse) {
formula.rev = as.formula(paste(formula[3], formula[1],
formula[2]))
formulas = list(formula, formula.rev)
}
else {
formulas = list(formula)
}
Print("\n \n\n <<cyan Granger Causality Test (Bivariate)>>\n\n Hypothesized direction:\n <<blue {formula[2]} ~ {formula[2]}[1:Lags] + <<green {formula[3]}[1:Lags]>>>>\n ")
for (f in formulas) {
rev = FALSE
if (test.reverse & f != formulas[[1]]) {
rev = TRUE
Print("\n \n\n Reverse direction:\n <<blue {formula[3]} ~ {formula[3]}[1:Lags] + <<green {formula[2]}[1:Lags]>>>>\n ")
}
for (lag in lags) {
gt = lmtest::grangertest(formula = f, data = data,
order = lag, na.action = na.omit, ...) # changed here
Fval = gt[2, "F"]
df1 = -gt[2, "Df"]
df2 = gt[1, "Res.Df"]
sig = str_trim(sig.trans(p.f(Fval, df1, df2)))
result = bruceR::p(f = Fval, df1 = df1, df2 = df2)
result.simple = formatF(Fval, 2) %^% ifelse(sig ==
"", "", "" %^% sig %^% "")
Print("Lags = {lag}:\t{result}")
res[which(res$Lag == lag), ifelse(rev, 3, 2)] = p.plain(f = Fval,
df1 = df1, df2 = df2)
res[which(res$Lag == lag), 4] = ifelse(rev, res[[which(res$Lag ==
lag), 4]] %^% " (vs. " %^% result.simple %^%
")", result.simple)
}
}
cat("\n")
if (!is.null(file)) {
RES = res
RES[[2]] = str_replace(str_replace(RES[[2]], "p", "p"),
"F", "F")
RES[[3]] = str_replace(str_replace(RES[[3]], "p", "p"),
"F", "F")
if (test.reverse == FALSE)
RES = RES[1:2]
print_table(RES, row.names = FALSE, digits = 0, file.align.head = "left",
file.align.text = "left", title = "Table. Granger Causality Test (Bivariate).",
note = "Note. * p < .05. ** p < .01. *** p < .001.",
file = file)
}
}

environment(granger_test_HAC) <- asNamespace('bruceR')

Prepare HAC robust version of the test : end

granger_test(chicken ~ egg, data=lmtest::ChickEgg)
granger_test_HAC(chicken ~ egg, data=lmtest::ChickEgg, vcov=vcovHAC) # HAC

When I want to generate results of HLM, I meet one problem:

Platform: Mac latestโ€จR Version: 4.0.2 (2020-06-22)
bruceR Version: latest (installed viaย install_github())

First of all, thanks for developing this useful and powerful package!
Here is my code:
`

install packages

library(carData)
library(car)
library(haven)
library("lme4")
library (haven)
library(tidyverse)
library(RColorBrewer)
library(lmerTest)
library (dplyr)
library(ggplot2)
library(readxl)
library("ggpubr")
library(compareGroups)
library(lmerTest)
library(RLRsim)
library(mice)
library(dplyr)
library(lattice)
library(grid)
library(DMwR)
library(bootstrap)
library(interactions)
library(jtools)
library(devtools)
library(usethis)
library(rJava)
library(reghelper)
library(pacman)
library(interactions)
library(bbmle)
library(xlsx)
library(bruceR)

One model to illustrate this problem

lmm.fit2=lmer(trust ~(1|countrycode)+gini+gender+education+logGDP+Scarcity+social_class+age,data=gini_hlmanalysis1,REML=F)
HLM_summary(lmm.fit2)
`

Here is the studio feedback:

image

Thanks for your kindly reply!

Lin

ไธ‰ๅ› ็ด ๆททๅˆ่ฎพ่ฎกEMMEANS็ป“ๆžœๅ’ŒSPSS็š„GLM็ป“ๆžœไธไธ€ๆ ท

่ฟ‘ๆœŸไฝฟ็”จไธ‰ๅ› ็ด ๆททๅˆ่ฎพ่ฎก็š„SPSS็ป“ๆžœๅ’ŒbruceR็š„็ป“ๆžœไธไธ€ๆ ท๏ผŒๅ…ถไธญgroupๆ˜ฏ็ป„้—ด๏ผŒtaskๅ’Œconๆ˜ฏ็ป„ๅ†…ใ€‚taskๅ› ็ด ๆœ‰3ไธช๏ผŒๅš็ฎ€ๅ•ๆ•ˆๅบ”ๅˆ†ๆž็š„ๆ—ถๅ€™๏ผŒdf2 ๅบ”่ฏฅๆ˜ฏN-K๏ผŒNไธ€ๅ…ฑๆ˜ฏ20ไธช๏ผŒ้‚ฃๅบ”่ฏฅๆ˜ฏ17ไธชใ€‚ไฝ†ๆ˜ฏbruceR็ป“ๆžœdf2ๆ˜ฏ18ใ€‚ไธ็Ÿฅ้“ๆ˜ฏไธๆ˜ฏๆˆ‘ๆ“ไฝœ้”™่ฏฏใ€‚่ฟ‡็จ‹ๅ’Œๆต‹่ฏ•ๆ•ฐๆฎๅ‡ๅทฒไธŠไผ ใ€‚
SPSS ่ฏญๆณ•๏ผš
GLM task1con1 task2con1 task3con1 task1con2 task2con2 task3con2 BY group
/WSFACTOR=con 2 Polynomial task 3 Polynomial
/METHOD=SSTYPE(3)
/POSTHOC=group(LSD BONFERRONI)
/PLOT=PROFILE(taskgroupcon) TYPE=BAR ERRORBAR=CI MEANREFERENCE=YES
/EMMEANS=TABLES(OVERALL)
/EMMEANS=TABLES(contaskgroup) COMPAR(task) ADJ(BONFERRONI)
/PRINT=DESCRIPTIVE ETASQ PARAMETER HOMOGENEITY
/CRITERIA=ALPHA(.05)
/WSDESIGN=con task con*task
/DESIGN=group.
็ป“ๆžœ๏ผš
image

R ่ฏญๆณ•๏ผš
library(bruceR)
set.wd()
datas <- import(file ='test.sav')
Result <- MANOVA(datas,dvs='task1con1:task3con2',dvs.pattern = 'task(.)con(.)',
between='group',within=c('task','con'),file='dpd_face.doc') %>%
#EMMEANS(effect=c('task','con'),by='group')
EMMEANS(effect='task',by=c('group','con'),model.type = "multivariate")
็ป“ๆžœ๏ผš
image
ๆต‹่ฏ•ๆ•ฐๆฎ๏ผš
test.zip

[README] Please read this before you open/submit a new issue!!!

Dear users,

Thanks for your use of the bruceR package. This package has passed all code checks performed by CRAN, see CRAN Package Check Results for Package bruceR. If there were any errors in the check results, then the CRAN would notify the developer immediately. However, any error appearing only in YOUR operating system but not in the CRAN check results is highly likely due to your installed (old) versions of R and/or R packages, or due to some other unknown reasons not related to bruceR!

Although it is possible that bruceR may still have some bugs not detected by CRAN and not noticed by me, I strongly suggest you following these steps before you decide to open/submit a new issue here:

  1. Update R to its latest version (https://www.r-project.org).
  2. Update all R packages in your library to their latest versions.
  3. Restart R/RStudio if you have updated R and/or any R packages.
  4. Read the help page of the R function you don't know how to use (using help(function) or ?function).

I hope all issues you came across would be automatically fixed if you follow these suggestions.

If you are sure that the bugs are relevant to the functionality of bruceR and you have already read the help pages, then open and submit a new issue here.

Best regards,
Han-Wu-Shuang Bao

ๆกไปถ้—ด่ฏ•ๆฌกๆ•ฐ้‡ไธๅนณ่กก้—ฎ้ข˜

ๆ‚จๅฅฝ๏ผŒๅพˆๆ„Ÿ่ฐขๆ‚จ็š„ไป˜ๅ‡บ๏ผŒbruceR็œŸ็š„ๆ˜ฏไธ€ไธช้žๅธธๆ–นไพฟ็š„ๅทฅๅ…ทใ€‚ๆˆ‘ๆœ€่ฟ‘ๅœจไฝฟ็”จไธญ้‡ๅˆฐไธ€ไธช้—ฎ้ข˜๏ผŒๆˆ‘ๆœ‰ไธ€ไธชไธคๅ› ็ด ่ขซ่ฏ•ๅ†…็š„ๆ•ฐๆฎ๏ผŒไฝ†ๆ˜ฏๅ…ถไธญไธ€ไธชๅ› ็ด ็š„ไธๅŒๆฐดๅนณไน‹้—ด็š„่ฏ•ๆฌกๆ•ฐ้‡ๆ˜ฏไธไธ€ๆ ท็š„๏ผŒ่ฟ™ๅฏผ่‡ดๆˆ‘ๅฐ†ไธคไธชๅ› ็ด ้ƒฝ็บณๅ…ฅๆ–นๅทฎๅˆ†ๆžไธญๆ—ถ๏ผŒ่ฟ›่กŒไบ‹ๅŽๆฃ€้ชŒไฝฟ็”จ็š„ๅ‡ๅ€ผๆ˜ฏไธ‰ไธช็ป„็š„ๅ‡ๅ€ผ็š„ๅ‡ๅ€ผ๏ผŒๅ’Œไป…่ฎก็ฎ—ๅ•ไธชๅ› ็ด ็š„ๅ‡ๅ€ผๆ˜ฏไธไธ€ๆ ท็š„๏ผŒๅพ—ๅ‡บๆฅ็š„ๆฃ€้ชŒ็ป“ๆžœๅบ”่ฏฅๆ˜ฏไธๅ‡†็กฎ็š„ใ€‚

An error occurs when using function HLM_summary()

Platform: Windows x64
R Version: 4.1.1 (x64)
bruceR Version: latest (installed via install_github())


When I tried to generate tidy report of an object returned from function lmer(), the following error occurred:

HLM_summary(model.hlm3)

# Error in formula[[2]] : object of type 'symbol' is not subsettable

CFAๅ‡ฝๆ•ฐ็ผบๅคฑไธ€ไบ›ๅธธ็”จ็š„ไผฐ่ฎกๅ™จ

ๆˆ‘็•™ๆ„้“CFAไผฐ่ฎกๅ™จไผผไนŽๅชๆœ‰้ป˜่ฎค็š„MLไผฐ่ฎกๅ™จ๏ผŒ็„ถ่€Œๅ…ถๅฎžไธ€ไบ›ๅ…ฅWLS็ญ‰ไผฐ่ฎกๅ™จไนŸๆ˜ฏๅพˆๅธธ็”จ็š„๏ผŒๅฝ“็„ถ่ฟ˜ๆœ‰ไธ€ไบ›็จณๅฅ็š„ไผฐ่ฎกๅ™จๅฆ‚MLR็ญ‰ใ€‚ๅœจlavaanไธญๅฏไปฅ้€š่ฟ‡่พ“ๅ…ฅestimatorๆฅๆ›ดๆขไผฐ่ฎกๅ™จ๏ผŒๆˆ‘็Ÿฅ้“CFAๆ˜ฏๅฏนlavaan็ป“ๆžœๅพ—ๅฐ่ฃ…ใ€‚่ฟ™ๅœจbrucerๅŒ…ไธญไผผไนŽไธŠๅฏไปฅๅฎž็Žฐใ€‚

ๅฏ่ƒฝ้œ€่ฆๆทปๅŠ ไธ€ไบ›ๆ็คบๅ‘Š็Ÿฅ็”จๆˆท็›ฎๅ‰ไฝฟ็”จ็š„ๆ˜ฏไฝ•็งไผฐ่ฎกๅ™จใ€‚

ๅ…ณไบŽEMMEANS()ๅˆ†ๆž็ป“ๆžœ่ƒฝๅฆ่พ“ๅ‡บๆˆๆ–‡ๆœฌ็š„้—ฎ้ข˜

ๆˆ‘็ŽฐๅœจๅธŒๆœ›่ƒฝๅฐ†็ฎ€ๅ•ๆ•ˆๅบ”ๅˆ†ๆžๅ’Œๅคš้‡ๆฏ”่พƒ็š„็ป“ๆžœไนŸไปฅๆ–‡ๆœฌ็š„ๅฝขๅผ่พ“ๅ‡บใ€‚ไฝ†ๆ˜ฏ็ŽฐๅœจๅชๅœจMANOVA()ๅ‡ฝๆ•ฐ้‡Œๆ‰พๅˆฐไบ†fileๅ…ณ้”ฎๅญ—๏ผŒ่พ“ๅ‡บๅ‡บๆฅ็š„ๅ†…ๅฎนไนŸๅชๅŒ…ๅซไบ†ๆ–นๅทฎๅˆ†ๆž็š„้ƒจๅˆ†๏ผŒๅธฎๅŠฉๆ–‡ๆกฃ้‡Œ้ข็š„EMMEANS()่ฟ™ไธชๅ‡ฝๆ•ฐๆฒกๆœ‰็›ธๅ…ณ็š„ๅ…ณ้”ฎ่ฏใ€‚
ๅ› ไธบ่ฏพ้ข˜่ฆๅค„็†็š„ๆ•ฐๆฎๆฏ”่พƒๅคš๏ผŒๆ‰€ไปฅๅฆ‚ๆžœ่ƒฝๆ•ดๅˆๅˆฐไธ€ไธชๆ–‡ๆกฃ้‡Œ่พ“ๅ‡บไผš่Š‚็œๅพˆๅคšๅŠŸๅคซ๏ผŒๅ› ไธบๆฒกๆœ‰ๆ‰พๅˆฐ่ฟ™ไธชๅŠŸ่ƒฝๆ‰€ไปฅๆ‰“ๆ‰ฐไธ€ไธ‹ไฝœ่€…๏ผŒไธ็Ÿฅ้“ๆœ‰ๆฒกๆœ‰่ฟ™ไธชๅŠŸ่ƒฝ๏ผŸ

Feature request :ๆต‹้‡ไธๅ˜ๆ€ง

bruceไฝ ๅฅฝ๏ผŒๆˆ‘ไธ€็›ดไฝฟ็”จไฝ ็š„ๅŒ…่ฟ›่กŒไธ€ไบ›ๅ› ๅญๅˆ†ๆžๅ’Œๆ่ฟฐๆ€ง็ปŸ่ฎกใ€‚ไนŸๅ‘่ฟ™ไธชๅŒ…ๆไบ†ไธ€ไบ›issues๏ผŒๆ„Ÿ่ฐขไฝ ็ƒญๅฟƒ็š„่งฃๅ†ณไบ†่ฟ™ไบ›้—ฎ้ข˜ใ€‚

ๆˆ‘ไน‹ๅ‰ๅšๆต‹้‡ไธๅ˜ๆ€ง็š„ๆจกๅž‹ไธ€็›ด่ฆไฝฟ็”จlavaan่ฏญๆณ•ๆฅๅฎšไน‰ไธๅŒ็š„ๆจกๅž‹๏ผŒ่ฟ™ๆ˜พๅพ—ๅพˆ็น็ใ€‚ๆˆ‘็•™ๆ„ๅˆฐsemtoolsๆ›พๆœ‰ไธ€ไธชๆต‹้‡ไธๅ˜ๆ€ง็š„ๅ‡ฝๆ•ฐ๏ผŒไธ่ฟ‡็›ฎๅ‰ๅทฒ็ปๅบŸๅผƒ่ขซๆ›ดๅบ•ๅฑ‚็š„ๅ‡ฝๆ•ฐๅ–ไปฃไบ†ใ€‚็›ฎๅ‰Rไธญ็ผบๅฐ‘่ƒฝ็ฎ€ๅ•็š„ๆต‹้‡ไธๅ˜ๆ€ง็š„ๅ‡ฝๆ•ฐ๏ผŒๅณไฝฟๆœ‰ไนŸๅนถไธๅฅฝ็”จ๏ผˆๅฆ‚ๆœ‰ไธ€ไธชๅŒ…psycmodelไธญๆœ‰ไธ€ไธชๆต‹้‡ไธๅ˜ๆ€ง็š„ๅ‡ฝๆ•ฐ๏ผŒ็„ถ่€Œๅดๆฒกๆณ•ๅฎšไน‰ไผฐ่ฎกๅ™จไปฅๅŠๆต‹้‡็š„ๆจกๅž‹้˜ถๆ•ฐ่พƒๅฐ‘๏ผ‰ใ€‚

ๆˆ‘ๆƒณไฝ ๆ˜ฏๅฆๆœ‰ๅŠ ๅ…ฅ่ฟ™ไธ€ๅ‡ฝๆ•ฐ็š„ๆƒณๆณ•ใ€‚ๆต‹้‡ไธๅ˜ๆ€งไนŸๆ˜ฏๅ› ๅญๅˆ†ๆžไธญ็š„้‡่ฆๅ†…ๅฎน๏ผŒๆˆ‘่ง‰ๅพ—ไฝ ๅฆ‚ๆžœๅŠ ๅ…ฅ่ฟ™ไธชๅ‡ฝๆ•ฐ็š„่ฏๅฏไปฅๅŠ ๅ…ฅไธ€ไบ›ๆ˜ฏๅฆ้€š่ฟ‡ไธๅ˜ๆ€งๆต‹่ฏ•็š„ๆ่ฟฐใ€‚ไฝ ๅฏไปฅๅ‚่€ƒไธ€ไธ‹psycmodelไธญ็š„ๅฎž็Žฐhttps://jasonmoy28.github.io/psycModel/reference/measurement_invariance.htmlใ€‚

ๅ†ไธ€ๆฌกๆ„Ÿ่ฐขไฝ ไธบๅคงๅฎถๅธฆๆฅๅฆ‚ๆญคๆœ‰็”จ็š„ๅทฅๅ…ทใ€‚

Error in `$<-.data.frame`(`*tmp*`, "p.value", value = character(0))

After updated my R packages, when I use MANOVA function, I get the following error:

MSE = Mean Square Error (an estimate of the population variance ฯƒยฒ)

ANOVA Effect Size:
Error in `$<-.data.frame`(`*tmp*`, "p.value", value = character(0)) : 
  replacement has 0 rows, data has 3

But this error was not occurred before, how to solve this error.

R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] cowplot_1.1.1     performance_0.6.1 data.table_1.13.6 rio_0.5.16       
 [5] bruceR_0.5.4      ggstatsplot_0.6.6 psych_2.0.12      lsr_0.5          
 [9] forcats_0.5.0     stringr_1.4.0     dplyr_1.0.2       purrr_0.3.4      
[13] readr_1.4.0       tidyr_1.1.2       tibble_3.0.4      ggplot2_3.3.3    
[17] tidyverse_1.3.0  

EMMEANSๆ˜ฏๅฆๅชๆ”ฏๆŒๅฎฝๆ•ฐๆฎ๏ผŸ

ๆ‚จๅฅฝ๏ผๆˆ‘ๅœจไฝฟ็”จbruceRๆ—ถ๏ผŒ็”จMANOVA่ฎก็ฎ—ๅ•ๅ› ็ด ้‡ๅคๆต‹้‡ๆ–นๅทฎๅˆ†ๆž็š„็ป“ๆžœ๏ผŒๆ•ฐๆฎ่พ“ๅ…ฅ็š„ๆ˜ฏ้•ฟๆ•ฐๆฎ๏ผŒ่ฎก็ฎ—ไธ€ๅˆ‡ๆญฃๅธธใ€‚ไฝ†ๆ˜ฏๅฝ“ๆˆ‘ๆŠŠmodel่พ“ๅ…ฅๅˆฐEMMEANS๏ผŒๅนถๆŒ‡ๅฎšbyไธบ่ขซ่ฏ•ๅ†…ๅ› ็ด ๆ—ถ๏ผŒไผšๆŠฅ้”™ๆ็คบ๏ผšโ€œThere are no factors to testโ€ใ€‚่ฏท้—ฎๆ˜ฏๅ› ไธบๆˆ‘่พ“ๅ…ฅๆ•ฐๆฎไธบ้•ฟๆ•ฐๆฎ็š„ๅŽŸๅ› ๅ—๏ผŸ่ฐข่ฐขๆ‚จ๏ผ

[Bug] The PROCESS function incorrectly displays the coefficients of covariates as coefficients of direct effects.

Dear bruce,
I am using PROCESS in bruceR for modelling, however I have found a problem with the display. When I run model 7, the values of the covariates are incorrectly substituting the values of the direct effects. You can see this in the code below,I have used the example dataset data from your help file for this example

As you can see in the section Direct Effect: "parent_edu" (X) ==> "score" (Y) it shows a coefficient of -0.444, which should be the coefficient of partjob. Not the coefficient of the direct effect, which is 3.581 instead.

> PROCESS(data, y="score", x="parent_edu",
+         meds=c("family_inc"),
+         mod.path = c("x-m"),
+         mods="gender",
+         covs=c("partjob"))

************ PART 1. Regression Model Summary ************

PROCESS Model Code : 7 (Hayes, 2018; www.guilford.com/p/hayes3)
PROCESS Model Type : Moderated Mediation
-      Outcome (Y) : score
-    Predictor (X) : parent_edu
-    Mediators (M) : family_inc
-   Moderators (W) : gender
-   Covariates (C) : partjob
- Level-2 Clusters : -
All numeric predictors have been mean-centered.

Formula of Mediator:
-    family_inc ~ partjob + parent_edu*gender
Formula of Outcome:
-    score ~ partjob + parent_edu + gender + family_inc

Model Summary

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                       (1) score     (2) family_inc  (3) score   
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
(Intercept)              51.912 ***     9.207 ***      51.261 ***
                         (0.094)       (0.030)         (0.126)   
partjob                  -0.298         0.132 **       -0.444 *  
                         (0.194)       (0.045)         (0.187)   
parent_edu                5.546 ***     1.786 ***       3.581 ***
                         (0.190)       (0.061)         (0.199)   
genderMale                              0.107 *         1.358 ***
                                       (0.044)         (0.182)   
parent_edu:genderMale                   0.021                    
                                       (0.089)                   
family_inc                                              1.086 ***
                                                       (0.042)   
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
R^2                       0.081         0.146           0.145    
Adj. R^2                  0.081         0.146           0.145    
Num. obs.              9679          9679            9679        
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Note. * p < .05, ** p < .01, *** p < .001.

************ PART 2. Mediation/Moderation Effect Estimate ************

Package Use : โ€˜mediationโ€™ (v4.5.0), โ€˜interactionsโ€™ (v1.1.5)
Effect Type : Moderated Mediation (Model 7)
Sample Size : 9679
Random Seed : set.seed()
Simulations : 100 (Bootstrap)

Warning: nsim=1000 (or larger) is suggested!

Direct Effect: "parent_edu" (X) ==> "score" (Y)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
               Effect     S.E.       t      p               [95% CI]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Direct (c')    -0.444  (0.187)  -2.372   .018  *    [-0.811, -0.077]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Interaction Effect on "family_inc" (M)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                          F  df1   df2      p     
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
parent_edu x gender    0.05    1  9674   .815     
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Simple Slopes: "parent_edu" (X) ==> "family_inc" (M)
(Conditional Effects [a] of X on M)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  "gender"  Effect     S.E.       t      p             [95% CI]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Female     1.786  (0.061)  29.104  <.001  ***  [1.665, 1.906]
  Male       1.806  (0.064)  28.294  <.001  ***  [1.681, 1.932]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Running 100 * 2 simulations...
Indirect Path: "parent_edu" (X) ==> "family_inc" (M) ==> "score" (Y)
(Conditional Indirect Effects [ab] of X through M on Y)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  "gender"  Effect     S.E.       z      p        [Boot 95% CI]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
  Female     1.940  (0.110)  17.650  <.001  ***  [1.725, 2.109]
  Male       1.962  (0.085)  23.009  <.001  ***  [1.825, 2.149]
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Percentile Bootstrap Confidence Interval
(SE and CI are estimated based on 100 Bootstrap samples.)

Note. The results based on bootstrapping or other random processes
are unlikely identical to other statistical software (e.g., SPSS).
To make results reproducible, you need to set a seed (any number).
Please see the help page for details: help(PROCESS)
Ignore this note if you have already set a seed. :)

Hopeing this will help you.

Alpha function

Based on the documentation, I think the Alpha function required the item to be in the format of common var name + unique var name (e.g., a1 , a2, a3 should be written as var = a, items = 1:3). However, in practice, that's not always the case to have a common var name follow by a unique var name. For example, I want to use the item Q67, Q88, Q89a, Q89b, Q89c, and it is not supported by the Alpha function (at least I don't know how to do it by reading the documentation)

I think it would be much more useful if the function supports subsetting using the dplyr::select() syntax and the helpers (e.g., everything(), starts_with()).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.