Sdartistics
A statistics library written in Dart.
Install / Use
/learn @runkaiz/SdartisticsREADME
Sdartistics
A statistics package written in Dart. This package powers SP2S.
Features
- [ ] Utility
- [x]
double roundDouble(double value, [int places = 1])
- [x]
- [x] Sample Descriptives
- [x] Count for n
- [x] Calculate sum
- [x] Central tendency: mean, mode, median
- [x] Simple range: min, max
- [x] Dispersion: variance, standard deviation, coefficient of variation, range
- [x] Shape: skewness, kurtosis, excess kurtosis
- [x] Frequency for values
- [ ] Test Statistics
- [ ] Discrete
- [ ] Binomial test
- [ ] Chi-square goodness-of-fit test
- [ ] Chi-square test
- [ ] Fisher's exact test
- [ ] McNemar's test
- [ ] Continuous
- [ ] One-sample T-test
- [ ] Two independent samples T-test
- [ ] Two paired samples T-test
- [ ] Wilcoxon rank-sum test
- [ ] Kruskal Wallis
- [ ] Wilcoxon signed ranks test
- [ ] One-way ANOVA
- [ ] Discrete
- [ ] Correlation and Linear Regression
- [ ] Pearson's product-moment correlation
- [ ] Spearman's rank correlation
- [ ] General linear models
- [ ] Generalized linear models
- [ ] Provide data for graphs
Getting started
Install the Dart SDK on your development machine, then clone this project and begin hacking!
Usage
- [ ] See
/examplefolder for more details.
Future<void> main() async {
final df = await Table.fromCsv('datasets/incomplete.csv');
df.print();
final double var1_mean = SampleDescriptives.mean(df.colRecords<int>('variable_1'));
print(roundDouble(var1_mean, 2)) //2.67
}
Additional information
Some commands to run during development:
Generate Documentation
foo@bar:~$ dartdoc --output docs
I used the alias command in Linux so that the command ddg would produce the same results, the extra flag is added for GitHub Pages compatibility.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
