Your x values aren't in increasing order. When you plot lines(x, yfit),
it joins the points in the order you give them, which jumps back and
forth. To fix, try
o <- order(x)
lines(x[o], yfit[o], col="green", lwd=2)
Duncan Murdoch
On 09/01/2021 2:58 p.m., varin sacha via R-help wrote:
#
Dear R-experts,
Here below my R code. What is happening with my green curve ? How to solve the
problem ?
Many thanks,
##
#DATA
y<-c(499,491,500,517,438,495,501,525,516,494,500,453,479,481,505,465,477,520,520,480,477,416,502,503,497,513,492,469,504,482,502,498,463,504
Looks like a misplaced right parenthesis. Try
contrast.outcome <-contrast(emmeans.outcome, method =
list("experimental_post1 - control_post1" = c(1, 0, -1, 0),
"experimental_post2 - control_post2" = c(0, 1, 0, -1)), adjust = "bonf")
Pat
On Sat, Jan 9, 2021 at 3:10 AM Laura Coco wrote:
>
> Hell
Hello
I am trying to add a Bonferroni adjustment to two comparisons, and I'm
getting an error msg.
The contrasts run just fine; I used a contrast matrix with dummy
variables: Experimental
vs Control at post1 (first contrast) and Experimental vs Control at post2
(second contrast).
contrast.outcom
4 matches
Mail list logo