Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about the code #1

Open
KGmax opened this issue Jun 11, 2023 · 0 comments
Open

Questions about the code #1

KGmax opened this issue Jun 11, 2023 · 0 comments

Comments

@KGmax
Copy link

KGmax commented Jun 11, 2023

When I run 404_case4.R , a question comes up that I don't quite understand as a newbie. I hope I can get your help.

code:

emm1df <- as.data.frame(ests) %>% mutate(Visit = contrasts.Visit, subgroup = ifelse(contrasts.subgroup == 0, "Negative", "Positive"), y = -1*contrasts.estimate ) %>% left_join(vis_dat) %>% mutate( Visit = contrasts.Visit, Week = ifelse(subgroup == "Positive", NOMTIME - 0.15, NOMTIME + 0.05 ) )

Error in mutate():
ℹ In argument: Visit = contrasts.Visit.
Caused by error:
! object 'contrasts.Visit' not found
Run rlang::last_trace() to see where the error occurred.
Warning message:
In as.data.frame.emm_list(ests) :
Note: 'as.data.frame' has combined your 2 sets of results into one object,
and this affects things like adjusted P values. Refer to the annotations.

Anyway, I don't understand what the problem is.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant