Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languageja
Note

このチュートリアルに進む前に、rank()機能を十分参照することをお勧めします。

このチュートリアルでは、試験スコアでロードされたデータセットを活用します。

データセットには2つの列があります:

  • 生徒のID
  • 生徒の点数

ilupng
data

百分位数

Info

百分位数(または百分率)は観測があたる特定のパーセントである以下の変数値です。例えば、20番目の百分位数は観測の20%があたる値(スコア)です。

それぞれの生徒のスコアの隣に百分位数を表示する表を作成できます。

  • 生徒IDドリルダウンと点数インディケーターで新規表を作成

  • 新規インディケーターを作成百分位数
  • インディケーター設定に次のフォーミュラを追加
  • 単位にパーセンテージを設定し、適切な形式に関連させる
Code Block
int records = aggregatePrevLevel(1){L_ID_COUNT}
int rank = rank() {M_SCORE} 
double percentile = 1-(rank/records)
return percentile
  1. ライン: 合計レコード(生徒)数を蓄積します。生徒のドリルダウンが使用されているため、集合体1のレベルアップが必要です。
  2. ライン: それぞれのレコードのランクを取得します。
  3. ライン: ランク百分位数に再計算。例えば、100人の生徒からのランクが5であったとき、百分位数は: 1-(5/100) = 95%

ilupng
percentile

分位

Info

データを等しい割合で分ける値です。例としては中数、分位、十分位数があります。

試験スコアの中数を表示するKPIラベルを作成する必要があります。

  • 新規KPIラベルを作成
  • 新規インディケーターの作成分位
  • 以下のフォーミュラをインディケーター設定に追加
  • 観測分位の大々的な変更には分位変数を作成
Code Block
int records = L_ID_COUNT
double groups = 100/@quantile
int key = round(records-records/groups)
double median = 0
membersSum('L_ID'){
  rank = rank(){M_SCORE}
  if (rank == key){
  	median = M_SCORE
  }
}

return median
  1. 最初の3行を使い提供された分位変数を変換し、スコアセット内で一致する位置を見つけてください。
  2. 生徒IDのレベルに統合されているそれぞれのスコアのランクを取得してください。
  3. 現在のランク位置に等しい場合、点数中数変数に蓄えてください。

ilupng
quantile

次に

Sv translation
languagede
Note

Es wird empfohlen, sich mit der rank()-Funktion vertraut zu machen, bevor Sie mit diesem Tutorial fortfahren.

Für dieses Tutorial werden wir den Datensatz verwenden, der mit den Untersuchungsergebnissen geladen ist.
Der Datensatz enthält zwei Spalten:

  • Student ID
  • Student Score

ilupng
data

Percentiles

Info

Percentile (or centile) is the value of a variable below which a certain percent of observations fall. For example, the 20th percentile is the value (or score) below which 20 percent of the observations may be found.

You desire to create table showing percentile next to score for each student.

  • Create new table with student ID drill-down and Score indicator.
  • Create new indicator - Percentile.
  • Add following formula into Indicators settings.
  • Setup percentage to Unit and associate it with appropriate Format.
Code Block
int records = aggregatePrevLevel(1){L_ID_COUNT}
int rank = rank() {M_SCORE} 
double percentile = 1-(rank/records)
return percentile
  1. line: Store the number of total records (students). Since, student drill-down is used, aggregation one level up is needed.
  2. line: Obtain rank for each record.
  3. line: Recalculate rank to percentile. For example, if rank is 5 from 100 students, the percentile will be: 1-(5/100) = 95%.

ilupng
percentile

Quantiles

Info

A value which divides a set of data into equal proportions. Examples are median, quartile and decile.

You desire to create KPI label showing the median of exam scores.

  • Create new KPI label.
  • Create new indicator - Quantile.
  • Add following formula into Indicators settings.
  • Create quantile variable, to be able to dynamically change observed quantile.
Code Block
int records = L_ID_COUNT
double groups = 100/@quantile
int key = round(records-records/groups)
double median = 0
membersSum('L_ID'){
  rank = rank(){M_SCORE}
  if (rank == key){
  	median = M_SCORE
  }
}

return median
  1. Use first three lines to convert provided quantile variable and find the corresponding position within the set of scores.
  2. Obtain rank for each score, aggregated to the level of student's ID.
  3. If the current rank equals the position, store score to the median variable.

ilupng
quantile

Next Steps