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

simulate_data_TTest #14

Open
DominiqueMakowski opened this issue Sep 3, 2018 · 0 comments
Open

simulate_data_TTest #14

DominiqueMakowski opened this issue Sep 3, 2018 · 0 comments
Labels
feature idea New feature or request

Comments

@DominiqueMakowski
Copy link
Member

DominiqueMakowski commented Sep 3, 2018

Describe the solution you'd like
Simulate a dataset of variables / groups with specified standardized difference.

  • How to name the function (simulate_data_TTest, simulate_data_d, ...)?
  • How to handle one sample - two samples paired / not paired

How could we do it?

e.g.:

import Distributions, Random, DataFrames, Psycho

function simulate_data_TTest(d::Number=1, n::Int=100)
  x1 = Random.rand(Distributions.Normal(0, 1), n)
  x2 = Random.rand(Distributions.Normal(d, 1), n)

  y = standardize(vcat(x1, x2))
  group = repeat(Psycho.simulate_groupnames(2), inner=n)

  data = DataFrames.DataFrame(hcat(y, groups), [:y, :Group])
  return data
end
@DominiqueMakowski DominiqueMakowski added the feature idea New feature or request label Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature idea New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant