メインコンテンツへスキップ

Data Explorer

このコンポーネントは、学生が提示されたデータを簡単に要約し、様々な統計的検定を行うために使用されます。

オプション

  • categorical | array: 各カテゴリ変数の名前を示す文字列の配列. Default: [].
  • quantitative | array: 各量的変数の名前を示す文字列の配列. Default: [].
  • data | object: は、表示するデータオブジェクトまたは配列を指定します。オブジェクトの場合はキーが列の値に対応し、配列の場合は各列に対応する名前付きフィールドを持つオブジェクトの配列を期待します。学生に .csv ファイルをインポートできるようにしたい場合は、data オプションを false に設定してください。. Default: {}.
  • dataInfo | object: キーを含むオブジェクト name, 値が文字列である info, 値が文字列の配列である info, 配列の各要素が改行されたものである variables, キーが変数名、値が変数の説明である variables を持つオブジェクト。. Default: { 'info': '', 'name': '', 'variables': null, 'showOnStartup': false }.
  • editor | boolean: エディタをユーザに表示するかどうかを示すブール値. Default: true.
  • editorProps | object: に渡されるプロパティのオブジェクトです (
    のドキュメントを参照してください)。. Default: none.
  • editorTitle | string: 表示されるエクスプローラのタイトルを示す文字列. Default: none.
  • dataTable | boolean: データテーブルをビューから隠すかどうかを示すブール値. Default: true.
  • dataTableProps | object: プロパティはデータテーブルコンポーネントに渡されます (
    のドキュメントを参照してください)。. Default: {}.
  • history | boolean: 実行されたアクションの履歴ログを表示するかどうかを制御します。. Default: true.
  • reportMode | string: エディタの変更を全員に同期させるか (collaborative)、グループ内のユーザに同期させるか (group)、同期させないか (individual) を制御します。. Default: 'individual'.
  • histogramDensities | boolean: ヒストグラムの密度を表示するかどうかを示すブール値. Default: true.
  • models | array: データに適合するモデルを示す文字列の配列. Default: [ 'Simple Linear Regression', 'Multiple Linear Regression', 'LASSO', 'Decision Tree', 'Random Forest', 'Logistic Regression', 'Naive Bayes', 'PCA', 'Hierarchical Clustering', 'kmeans' ].
  • opened | string: 起動時に開いたページ. Default: none.
  • plots | array: ユーザに表示するプロットを示す文字列の配列. Default: [ 'Bar Chart', 'Pie Chart', 'Mosaic Plot', 'Histogram', 'Interval Plot', 'Box Plot', 'Line Plot', 'Scatterplot', 'Scatterplot Matrix', 'Heat Map', 'Contour Chart', 'Violin Plot', 'QQ Plot' ].
  • questions | (array|object): questions タブに表示されるテキストと質問コンポーネントのノードの配列、または基礎となるコンポーネントに渡されるプロパティのオブジェクト。 <Pages />コンポーネント. Default: none.
  • showTestDecisions | boolean: 計算されたp値に基づいて各テストの決定を表示するかどうかを示すブール値. Default: true.
  • statistics | array: サマリー統計量が計算される可能性があることを示す文字列の配列. Default: [ 'Mean', 'Median', 'Min', 'Max', 'Range', 'Interquartile Range', 'Standard Deviation', 'Variance', 'Correlation', 'Correlation Matrix', 'Skewness', 'Excess Kurtosis', 'First Quartile', 'Third Quartile', 'Quantile', 'Five-Number Summary' ].
  • style | object: メインコンテナのCSSインラインスタイル. Default: {}.
  • tables | array: データからどのテーブルが作成されるかを示す文字列の配列. Default: [ 'Frequency Table', 'Contingency Table' ].
  • tabs | array: 追加するカスタムタブを示すオブジェクトとキーの配列. Default: [].
  • tests | array: どの仮説検定を含めるかを示す文字列の配列. Default: [ 'One-Sample Mean Test', 'Two-Sample Mean Test', 'One-Way ANOVA', 'One-Sample Proportion Test', 'Two-Sample Proportion Test', 'Correlation Test', 'Chi-square Independence Test', 'Kruskal-Wallis Test' ].
  • transformer | boolean: 変数変換ツールを表示するかどうかを示すブール値. Default: true.
  • onTutorialCompletion | function: データエクスプローラのチュートリアルが完了したときに呼び出される関数. Default: onTutorialCompletion() {}.
  • onTutorialStart | function: データエクスプローラチュートリアルの起動時に呼び出される関数. Default: onTutorialStart() {}.

例としては、以下のようなものがあります。

In creating a data explorer, one needs a .json dataset. This step may be accomplished by including the following in the header of a .isle file:

require:
dataName: "./dataName.json"

Consider a dataset called "heartdisease" with the following variables:

  • Gender: Categorical
  • Drugs: Categorical
  • Complications: Categorical
  • Cost: Quantitative
  • Age: Quantitative
  • Interventions: Quantitative
  • ERVisit: Quantitative
  • Comorbidities: Quantitative
  • Duration: Quantitative

We will include the explorer with the following code:

ライブエディター
結果
Data
id
Cost
Age
Gender
Interventions
Drugs
ERVisit
Complications
Comorbidities
Duration
0
0
52665
52665
24
24
70
70
Show all
0
0
47
47
0
0
2
2
0
0
20
20
Show all
0
0
60
60
0
0
372
372
1
179.1
63
Female
2
1
4
0
3
300
2
319
59
Female
2
0
6
0
0
120
3
9310.7
62
Female
17
0
2
0
5
353
4
280.9
60
Male
9
0
7
0
2
332
5
18727.1
55
Female
5
2
7
0
0
18
6
453.4
66
Female
1
0
3
0
4
296
7
323.1
64
Male
2
0
3
0
1
247
8
3873.6
45
Male
3
0
5
0
1
82
9
3243.8
68
Female
6
2
5
0
4
334
10
225.6
64
Male
3
0
2
0
0
85
11
2169.2
64
Male
5
0
0
0
0
55
12
599.9
50
Female
0
0
7
1
0
26
13
2224.6
55
Female
6
2
2
0
0
86
14
11.2
53
Female
0
1
1
0
0
0
15
689.7
55
Female
2
0
0
1
0
1
16
309.4
67
Male
3
0
3
0
3
148
17
304.1
62
Female
0
0
4
0
2
282
18
200.4
63
Female
0
0
3
0
6
340
19
978.9
67
Female
5
0
2
0
13
285
20
330.2
60
Female
1
0
1
0
10
318
21
642.2
64
Female
4
0
1
0
9
347
22
760
52
Male
1
0
4
0
0
295
23
1247
41
Female
4
0
0
0
0
40
24
226.6
64
Female
1
0
1
0
0
0
25
21505.2
64
Male
8
1
7
0
3
227
26
12481.1
69
Female
15
1
8
0
0
315
27
369.6
48
Female
2
0
1
0
0
13
28
3110.8
55
Male
6
2
6
0
6
89
29
3613.1
57
Female
8
0
3
0
21
293
30
977
68
Male
5
0
3
0
5
256
31
326
68
Female
2
0
1
0
1
111
32
252.3
60
Female
2
0
2
0
6
60
33
3902.8
41
Female
3
0
3
0
3
82
34
116.9
49
Female
2
0
1
0
0
0
35
38.4
66
Male
0
1
5
0
0
0
36
978.8
40
Female
5
0
0
0
3
229
37
6345
61
Female
14
0
3
0
5
335
38
1182
65
Male
5
0
4
0
15
344
39
4869.1
52
Female
3
0
5
0
0
307
40
73.6
63
Female
0
0
1
0
0
174
41
214.4
55
Male
0
0
3
0
0
236
42
635.7
60
Female
2
0
1
0
8
262
43
91.6
62
Male
2
1
3
0
1
204
44
160.9
69
Female
0
0
2
0
4
272
45
7388.9
68
Female
47
2
11
0
1
146
46
81.6
48
Female
3
2
3
0
0
209
47
3427.6
60
Female
12
2
1
0
0
79
48
7215.5
64
Female
3
0
5
0
19
333
49
1466
60
Female
6
1
2
0
0
0
50
29.2
59
Female
1
0
2
0
0
0
Page
of 16
Loading...

Output