{"_id":"@arpeely/sample-size-calculator","_rev":"4-52ae7f3667ce70efdc56d5ed3c1286bb","name":"@arpeely/sample-size-calculator","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@arpeely/sample-size-calculator","version":"1.0.0","description":"A/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.","main":"lib/index.js","types":"lib/index.d.ts","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/Arpeely/sample-size-calculator.git"},"keywords":["A/B test","sample-size","javascript","typescript"],"bugs":{"url":"https://github.com/Arpeely/sample-size-calculator/issues"},"scripts":{"build":"tsc","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","prepare":"yarn build","test":"jest --config jestconfig.json","prepublishOnly":"yarn test","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^24.0.15","jest":"^24.8.0","prettier":"^1.18.2","ts-jest":"^24.0.2","typescript":"^3.5.2"},"_id":"@arpeely/sample-size-calculator@1.0.0","dist":{"shasum":"bc1c0f5fab66fef95948266741e398b14c643dfe","integrity":"sha512-0JGvpSOR3UfqidalsUq/y4nCxTmwfk+Lw83/Rr8pyLWfD04hJ0U9AOnsbAUFWTmnoCv8iUd2+a+qRFAdiGtzKA==","tarball":"https://registry.npmjs.org/@arpeely/sample-size-calculator/-/sample-size-calculator-1.0.0.tgz","fileCount":8,"unpackedSize":4531,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG4wQCRA9TVsSAnZWagAAtvYP/3T2qpof6JqvO5iYWUzZ\nA+uVLSxzA4YPWZDzpxSvDePGP/AJbnImR/GLZZQamtmttRUdKrThEZ6ltT+/\nvci+jabdOJ2LdzqScbUhUxKqvQoVC+knoUtSBGrPHbORdetXRvVh4OtzS305\nwdF1chuzRYozFh8UDLp1nl7Z5YBL853G163qP0y5TSns0OWg3A66LF4b13K5\nH+K6BpFrhfiWMQ4wz+taw6Eg0DsNIN764ZgnTHg7is+l3e58Y9M2y43v9qoH\nF2+JHx88r4ZmwqZ3qup8t9TKpJDNiWjoJboKIylAbqOCmtonS4zPy84jD+nw\nBqhbzb9dhscbh8SOC1A+fs15TpADt1YfCSNBIpcivgmrHBUu6iPsOZ95oCsU\nHl8zhqKR4pWXjT/0wV7AhtCVxsPcQgM1Y+2JXYYAcramW6ax7oIifpgD1mmf\nwWc2m9Y4+xBy4sgol7QpQ2QEOEywgKgYwfTAevFKuVmx0dUN3t4Bsp+z0xUv\nZtSspU2nrAWtGOzDxiI+4J/EkzBcGx1U7ItfBQOHj0zBeyaSpxXqbUebqe68\nZG9Hh+YBLHoFK5liSbWJxuCL6coclq8TYz2P/yeG4jVeppjohA8SQu9aGkuv\nfI8f+dFVPWpMrpFTru5A7PRV0KUJV06YBr3wnEFhsSmrifCxre/xwujevpmJ\nUIX8\r\n=OcWY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUPP2apoudBsFJjd6ESlfENYw0hANtZI3JZ+sgsHMYOAIgXZ0wit3AcWEuNZ/OQ2QXzfgtY5ApWmM+1YQAZcK3G4k="}]},"maintainers":[{"name":"id0sch","email":"ido.schachter@gmail.com"}],"_npmUser":{"name":"id0sch","email":"ido.schachter@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sample-size-calculator_1.0.0_1562086416245_0.44503253693615763"},"_hasShrinkwrap":false},"1.0.1":{"name":"@arpeely/sample-size-calculator","version":"1.0.1","description":"A/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.","main":"lib/index.js","types":"lib/index.d.ts","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/Arpeely/sample-size-calculator.git"},"keywords":["A/B test","sample-size","javascript","typescript"],"bugs":{"url":"https://github.com/Arpeely/sample-size-calculator/issues"},"scripts":{"build":"tsc","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","prepare":"yarn build","test":"jest --config jestconfig.json","prepublishOnly":"yarn test","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^24.0.15","jest":"^24.8.0","prettier":"^1.18.2","ts-jest":"^24.0.2","typescript":"^3.5.2"},"publishConfig":{"access":"public"},"_id":"@arpeely/sample-size-calculator@1.0.1","dist":{"shasum":"7a07d84ce12af86c72c17be189588bc86085fb92","integrity":"sha512-QgrEAsnTjmx6cD1e3nVgCrHiIY1U81Nk5G11t0BSMge6+9iP26hJLsQ1AAp4DD/sR0DdF8n6hiGdtYv/BmxiaQ==","tarball":"https://registry.npmjs.org/@arpeely/sample-size-calculator/-/sample-size-calculator-1.0.1.tgz","fileCount":8,"unpackedSize":4581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdG44hCRA9TVsSAnZWagAA7I0P/AzJX+DmXTPJVf09/GBk\n8v6TigFm3RVcK1HeCpyFWSgBVxFRfBkc0s7HS5+j7YEcEcsWCRMHJXraxhEb\n/XIScii5EDdnml7ERAgo2r+Fx18DuA6LTv3pV3Bd7An0CNajf0qn6uN99zBb\nRByR0qzllR/Q2Vz6Tz+4v2xr+43KDq2gz6FzVkoy8sGT90zDQymLBckthiaU\n0dLLzTAZmz6H0fvWbTDjScm94BtBDn7/aw89EZFBdYhQttEqTNB1iToG/rqo\nqdOxKR7iqA1Xb8x7A5vKaNNMGYg+j5U+H/JgcZEqpTGeU5iF5sUNXGcgOqRl\n48YU2mPgsm+PbZp8GbCby7qKFji+cws+jrvfo8cMNlwJXFkW1DWCOVHrsrzR\ndCS4Qs6hrYxAdPi4tL9+s9xCcxEZn/L2ewYpAb6COQfs0Z9kSl1AyNcCkqZ1\npZE09NEx9G55LMqwgVGQ26HNRE6ofOmKztZ/UQGUdsMC2FHQFO6kLmCDsLs8\n5tNJlP6VkSkCa9ZFchRldgSpH6cgsNfwHBEEeoc8/9mHllJcWUVM6UhfUd8m\nC5v78+03B0SgztmFa5XJ6fs6xZ3pKbstxynZBtuqSAnAFVcC+tVC20B5X3z2\nshop5T5Ualc6N6mEWcck87KmmAZiszYUO0N5WmKsODNZoOIDIuz2FsZUa7yn\nxHld\r\n=FgiY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP5Sfaecf7rEkcyxu0LC41XMiE9QYr5F95ltSRW9v/RQIhAKDtHRcGRezwS/3vRLpuVdIZTESBMbQpBnYD7N0jC+Ux"}]},"maintainers":[{"email":"s*****@gmail.com","name":"grooveygr"},{"email":"me@idos.dev","name":"id0sch"}],"_npmUser":{"name":"id0sch","email":"me@idos.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sample-size-calculator_1.0.1_1562086944485_0.20039561821162777"},"_hasShrinkwrap":false},"1.0.3":{"name":"@arpeely/sample-size-calculator","version":"1.0.3","description":"A/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.","main":"lib/index.js","types":"lib/index.d.ts","license":"MIT","private":false,"repository":{"type":"git","url":"git+https://github.com/Arpeely/sample-size-calculator.git"},"keywords":["A/B test","sample-size","javascript","typescript"],"bugs":{"url":"https://github.com/Arpeely/sample-size-calculator/issues"},"scripts":{"build":"tsc","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","prepare":"yarn build","test":"jest --config jestconfig.json","prepublishOnly":"yarn test","version":"yarn format && git add -A src","postversion":"git push && git push --tags"},"devDependencies":{"@types/jest":"^24.0.15","jest":"^24.8.0","prettier":"^1.18.2","ts-jest":"^24.0.2","typescript":"^3.5.2"},"publishConfig":{"access":"public"},"_id":"@arpeely/sample-size-calculator@1.0.3","dist":{"shasum":"cc15ca64f169c6cadc270ae2d0a9d93bb7a2c563","integrity":"sha512-CeZsb1JTRNzyOTGiOXaDvH2/vfVU5EYyz8e4oYzpD6VILll1MwWDMAxhYj3BJWOp+cETFoJfMPXQafgPmdahpw==","tarball":"https://registry.npmjs.org/@arpeely/sample-size-calculator/-/sample-size-calculator-1.0.3.tgz","fileCount":8,"unpackedSize":4896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLr9oCRA9TVsSAnZWagAAkHwP/0agNx/8/znbTljbnxFY\nnIf1s+a9rwQ337LfaafCg8UUpm0hJBrp4toYEZvgQpvz0pJX6cquqwNYaVeR\noK/nYL8k7y4Pd6rkosDC1bAbp/36JoZ6TwkhjSdqsotLFUnUQXpHsLODBCI0\ncCp1CHA4/KqO1sJ6xdAM03tPyxMOeqJ+Wg2f3YKgbWjoYDR9hZ8YBtY0HNH3\nbgBY98gPk2NxxA/bJrh8j6uyI0HfwqDxY+nWoCLlTzq51IBvh/q0F9s0xYin\n0ZgpB3cg0uBKcGbj6/2Eq/2yZglvlsuWthtGH8asBeJcwNvvVxhNqfViIOsL\nnQ+hhX2tomFELG+k+CxlUBnzJUXsP1DFbOpdwkfxo4DbI8JVL/0revdg2bTw\n0sVlKDBBYx5GkXlc9ZGh19ey/ZG5ieAVr958DpTCjCSr1ez4e8r3MeJzu5fJ\nMRur5fuJFSjXba8VlX9um9bTUE+/YeQaahbDmr33Ew1I7Y8VAWImh/1bn2+z\nJNtscwrUwCj4UCzvj1i778efr6tVz3kqK0pGWpvaNrb1JNFFrp+NtgX7+J2L\n19xE1Mrq/jb9ihSAWN6pkZqZO9cJEEyyMk6mpbJnAizCxz/88pYXhccVauNf\nYeAWq0F84EiVuxDqHuUgUxmmLWN1URD68ZpWBldgGW91E/8+Mwnv1kflcuEI\n3tWd\r\n=xAm/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzkiFuh+JcU4l+JeCUeqi1juno+aIHM1ANer8wHYIzSwIgBxWCV7B2eEEtG4LOb25Dj/GDdjZv93CJkZKvPf9CWTQ="}]},"maintainers":[{"email":"s*****@gmail.com","name":"grooveygr"},{"email":"me@idos.dev","name":"id0sch"}],"_npmUser":{"name":"id0sch","email":"me@idos.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sample-size-calculator_1.0.3_1563344743649_0.8860915293162064"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-02T16:53:36.020Z","1.0.0":"2019-07-02T16:53:36.383Z","modified":"2022-04-04T15:34:10.269Z","1.0.1":"2019-07-02T17:02:24.697Z","1.0.3":"2019-07-17T06:25:43.853Z"},"maintainers":[{"email":"s*****@gmail.com","name":"grooveygr"},{"email":"me@idos.dev","name":"id0sch"}],"description":"A/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.","keywords":["A/B test","sample-size","javascript","typescript"],"repository":{"type":"git","url":"git+https://github.com/Arpeely/sample-size-calculator.git"},"bugs":{"url":"https://github.com/Arpeely/sample-size-calculator/issues"},"license":"MIT","readme":"<h1 align=\"center\">Sample Size Calculator</h1>\n\nA/B test sample size calculator which uses a two-tailed sequential likelihood ratio test with false discovery rate controls to calculate statistical significance.\n\n[![npm version](https://img.shields.io/npm/v/@arpeely/sample-size-calculator.svg?style=flat-square)](https://www.npmjs.com/package/@arpeely/sample-size-calculator)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![volkswagen status](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)\n\n## Credits\n\nThis package is inspired by the great work done by [Optimizely's Stats Engine](https://www.optimizely.com).\n\nFor the original online version click [here](https://www.optimizely.com/sample-size-calculator/)\n\n## Install\n\nsample-size-calculator is available as an [npm package](https://www.npmjs.com/package/@arpeely/sample-size-calculator).\n\n```sh\n#with yarn\nyarn add @arpeely/sample-size-calculator\n\n#with npm\nnpm install @arpeely/sample-size-calculator\n```\n\n## Usage\n\n```javascript\nimport sampleSizeEstimate from '@arpeely/sample-size-calculator'\n\n// The minimum relative change in conversion rate you would like to be able to detect.\nconst relativeMDE = 0.3 //  30%\n\n// Your control group's expected conversion rate\nconst baselineConversionRate = 0.3572 //  35.72%\n\n// Sample size per variation\nconst sampleSize = sampleSizeEstimate(relativeMDE, baselineConversionRate)\nconsole.log(sampleSize) // output: 160\n```\n","readmeFilename":"README.md"}