Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@fullstax/kaplan-meier-estimator
Advanced tools
Kaplan-Meier-Estimator also known as the product limit estimator.
A JavaScript implementation of the Kaplan-Meier-Estimator also known as the product limit estimator.
npm install --save kaplan-meier-estimator
<script src="https://unpkg.com/kaplan-meier-estimator@latest/lib/kaplan-meier-estimator.umd.js">
See examples/node for an example implementation.
import { compute } from '@fullstax/kaplan-meier-estimator';
const timeToEvents = [1, 12, 22, 29, 31, …];
const events = [false, true, false, true, true, …];
const kmData = compute(timeToEvents, events);
console.table(kmData);
CommonJs is also supported:
const { compute } = require('@fullstax/kaplan-meier-estimator');
See examples/browser for an example implementation. To server this example jsu start d webserver in the root of this repository.
<script src="https://unpkg.com/@fullstax/kaplan-meier-estimator/lib/kaplan-meier-estimator.umd.js">
const timeToEvents = [1, 12, 22, 29, 31, …];
const events = [false, true, false, true, true, …];
const kmData = KME.compute((timeToEvents, events);
console.table(kmData);
┌─────────┬───────┬──────┬───────┐
│ (index) │ rate │ time │ event │
├─────────┼───────┼──────┼───────┤
│ 0 │ 1 │ 1 │ false │
│ 1 │ 0.929 │ 12 │ true │
│ 2 │ 0.929 │ 22 │ false │
│ 3 │ 0.851 │ 29 │ true │
│ 4 │ 0.774 │ 31 │ true │
│ … │ … │ … │ … │
└─────────┴───────┴──────┴───────┘
# | Time to Event | event | > | S(t) |
---|---|---|---|---|
1 | 1 | false | 1 | |
2 | 12 | true | 0.93 | |
3 | 22 | false | 0.93 | |
4 | 29 | true | 0.85 | |
5 | 31 | true | 0.77 | |
6 | 36 | false | 0.77 | |
7 | 38 | false | 0.77 | |
8 | 50 | false | 0.77 | |
9 | 60 | false | 0.77 | |
10 | 61 | true | 0.64 | |
11 | 70 | true | 0.52 | |
12 | 88 | false | 0.52 | |
13 | 99 | false | 0.52 | |
14 | 110 | false | 0.52 | |
15 | 140 | false | 0.52 |
Licensed 2022 by fullstax GmbH & Co. KG under a MIT License.
FAQs
Kaplan-Meier-Estimator also known as the product limit estimator.
The npm package @fullstax/kaplan-meier-estimator receives a total of 16 weekly downloads. As such, @fullstax/kaplan-meier-estimator popularity was classified as not popular.
We found that @fullstax/kaplan-meier-estimator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.