消費者調査:カテゴリカル:平均スコアまたは総回答によって降順コミュニティ各位
次のスクリプトがあります。平均スコア順( 1 しかし、最終結果には影響しません。Panel Boxにはそのような効果がありますか。
任意のアイデアを高く評価する....

Panel Box(
"Resorts:YASMIN, Report:GSQ, SubReport:Marketing, Author:SaitCopuroglu, " || Long Date( Today() ) || " "
|| Format( Time Of Day( Today() ), "h:m" ),
Data Table( "Veri_SelectionsTest2016RESORTS.jmp" ) << Categorical(
Grouping Option( Each Individually ),
X( :Agency ),
Responses( :Answer Categorical ),
Frequencies( 0 ),
Share Chart( 0 ),
Legend( 0 ),
Mean Score( 1 ),
Std Dev Score( 1 ),
Order by Mean Score( 1 ),
Local Data Filter(
Close Outline( 1 ),
Conditional,
Add Filter(
columns( :Resort, :Year, :Record Date ),
Where( :Resort == "YASMIN" ),
Where( :Year == 2017 ),
Where( :Record Date >= 01May2017 & :Record Date <= Today() ),
Display( :Resort, Size( 123, 21 ), Check Box Display ),
Display( :Year, Size( 110, 40 ), Check Box Display )
)
),
SendToReport(
Dispatch( {}, "Categorical", OutlineBox, {Set Title( "YASMIN RESORT 2017" )} ),
Dispatch( {}, "(Resort = YASMIN) and (Record Date == 22May2017)", TextBox, {Set Wrap( 1200 )} ),
Dispatch(
{},
"Responses( Answer Categorical ) By Agency",
OutlineBox,
{Set Title( "Responses By AGENCY" )}
)
)
)
)
再:消費者調査:カテゴリカル:平均スコアによる、または総応答による降順問題を解決するためにExcelに行く必要はありません。 解決策は最も簡単ではありませんが、Categorical Platformからの出力は直接JMPデータテーブルに変換できます。 以下はこれを行う方法を示す「非汎用」スクリプトです。 スクリプトは一般的なコードに変換できます。これはほとんどの場合に機能します。
Names Default To Here( 1 );
dt = Current Data Table();
rpt = dt << Categorical(
GroupingOption( EachIndividually ),
X( :SECTION, :MARKET, :COUNTRY ),
Responses( :VALUE ),
Frequencies( 0 ),
ShareChart( 0 ),
Legend( 0 ),
MeanScore( 1 ),
OrderByMeanScore( 1 )
);
dtCountry = New Table( "Country" );
// Build the Country Coulumn
CountryString = Report( rpt )["Responses( VALUE ) By COUNTRY"][GridCellBox( 10 )] << get text;
// Buildthe list of Countries
CountryStringList = {};
WordCNT = 3;
While( Trim( Word( WordCNT, CountryString, "\!n" ) ) != "",
Insert Into( CountryStringLIst, Trim( Word( WordCNT, CountryString, "\!n" ) ) );
WordCNT++;,
);
dtCountry << New Column( "Country", character, values( CountryStringList ) );
// Build the Percent Columns
dtCountry << New Column( "Çok iyi", Format( "Percent", 7, 2 ) );
dtCountry << New Column( "İyi", Format( "Percent", 7, 2 ) );
dtCountry << New Column( "Ortalama", Format( "Percent", 7, 2 ) );
dtCountry << New Column( "Zayıf", Format( "Percent", 7, 2 ) );
dtCountry << New Column( "Çok Zayıf", Format( "Percent", 7, 2 ) );
PercentString = Report( rpt )["Responses( VALUE ) By COUNTRY"][GridMultiCellBox( 2 )] << get text;
WordCNT = 1;
While( Trim( Word( WordCNT, PercentString, "\!n" ) ) == "", WordCNT++ );
RowCNT = WordCNT - 1;
While( Trim( Word( WordCNT, PercentString, "\!n" ) ) != "",
TheLine = Trim( Word( WordCNT, PercentString, "\!n" ) );
For( i = 1, i <= 5, i++,
Column( dtCountry, i + 1 )[WordCNT - RowCNT] = Num( Trim( Word( i, Theline, "%" ) ) ) / 100
);
WordCNT++;
);
// Add the Total Responses Column
TotalString = Report( rpt )["Responses( VALUE ) By COUNTRY"][GridCellBox( 2 )] << get text;
TotalStringList = {};
WordCNT = 3;
While( Trim( Word( WordCNT, TotalString, "\!n" ) ) != "",
Insert Into( TotalStringLIst, Num( Trim( Word( WordCNT, TotalString, "\!n" ) ) ) );
WordCNT++;,
);
dtCountry << New Column( "Total Responses", values( TotalStringList ) );
// Add the Mean Column
MeanString = Report( rpt )["Responses( VALUE ) By COUNTRY"][GridCellBox( 4 )] << get text;
MeanStringList = {};
WordCNT = 3;
While( Trim( Word( WordCNT, MeanString, "\!n" ) ) != "",
Insert Into( MeanStringLIst, Num( Trim( Word( WordCNT, MeanString, "\!n" ) ) ) );
WordCNT++;,
);
dtCountry << New Column( "Mean", values( MeanStringList ) );
// Sort the table
dtCountry << Sort( By( :Mean ), Order( Ascending ), Replace Table( 1 ) );

再:消費者調査:カテゴリカル:平均スコアによる、または総応答による降順問題は、結果がクロスタブレポート(標準のデータテーブルではない)になることです。 部分的な解決策は、結果をExcelに保存してそこで編集することです。 例えば:
NamesDefaultToHere(1);
dt = CurrentDataTable();
rpt = dt << Categorical(
GroupingOption( EachIndividually ),
X( :SECTION, :MARKET, :COUNTRY ), Responses( :VALUE ),
Frequencies(0), ShareChart(0), Legend(0),
MeanScore(1), OrderByMeanScore(1)
);
rpt << SaveExcelFile( "C:\Categorical.jmp",
SeparateRowsForEachCellStatistic(1)
);
次のステップは:
- 保存したExcelファイルを開く
- 不要なExcelの列と行を手動で削除する
- データを1つ以上のJMPデータテーブルに保存します。
- JMPテーブルソートを使用する
再:消費者調査:カテゴリカル:平均スコアによる、または総応答による降順ご回答ありがとうございます。
私は簡単なデータテーブルに "カテゴリカル"というスクリプトを添付しました。この特定の分析についての同じ質問は、合計応答と平均スコアに従って昇順または降順のテーブル配置のオプションがあるかどうかです。
"COUNTRY"列を "値の順序"にしようとしましたが、データが更新されるたびに値の順序も変更されます。
前もって感謝します
再:消費者調査:カテゴリカル:平均スコアによる、または総応答による降順このスクリプトのサンプルデータテーブルを提供できますか。