Skip to content

Conversation

@lkaraseva
Copy link

x1 and x2 variables were changed to g1 and g2 variables in a line 2 of the following code chunk to make it work:

Mistakenly treating the sleep data as grouped

n1 <- length(g1); n2 <- length(g2)
sp <- sqrt( ((n1 - 1) * sd(g1)^2 + (n2-1) * sd(g2)^2) / (n1 + n2-2))

x1 and x2 variables were changed to g1 and g2 variables in a line 2 of the following code chunk to make it work:

## Mistakenly treating the sleep data as grouped
```{r}
n1 <- length(g1); n2 <- length(g2)
sp <- sqrt( ((n1 - 1) * sd(g1)^2 + (n2-1) * sd(g2)^2) / (n1 + n2-2))
@lkaraseva lkaraseva changed the title Proposing minor code typos Proposing minor changes to code typos Jun 25, 2018
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

Successfully merging this pull request may close these issues.

1 participant