Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A test for comparing the means of two samples, or the mean of one sample (or even parameter estimates) with a specified value; also known as the "Student t-test" after the pseudonym of its inventor.
4
votes
Regression with a 0-1 variable. Should be the same as running a t-test, but I get a differen...
If you set var.equal=TRUE in the t.test() call, they should be equivalent. Eg:
set.seed(1)
x <- sample(0:1, 100, rep=TRUE)
y <- rnorm(length(y)) + x
dtf <- data.frame(x, y)
summary(lm(y ~ x, data=dtf …
0
votes
Two- Sample T test on Employment Data
The p-value is correct, the error lies in your method. If we plot the time series I think this will become obvious.
# Data
employees <- read.csv("https://fred.stlouisfed.org/graph/fredgraph.csv?i …