{"id":610,"date":"2015-01-28T03:44:16","date_gmt":"2015-01-28T08:44:16","guid":{"rendered":"http:\/\/blog.originlab.com\/?p=610"},"modified":"2015-02-27T10:41:16","modified_gmt":"2015-02-27T15:41:16","slug":"statistics-on-rows","status":"publish","type":"post","link":"https:\/\/blog.originlab.com\/ja\/statistics-on-rows","title":{"rendered":"Statistics on Rows"},"content":{"rendered":"<p>Origin provides tools for user to generate\u00a0basic statistics for rows in worksheet.<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats.png\" alt=\"610_desc_row_stats\" width=\"700\" height=\"382\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats.png 700w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats-300x164.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>In this blog post we will discuss the tools to generate row-wise statistics:<\/p>\n<ul>\n<li>Using the &#8220;Statistics on Rows&#8221; menu<\/li>\n<li>Rowstats x-function\u00a0for non-contiguous data\/multiple sheet<\/li>\n<li>Pros and cons of the two methods<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h4>Using the &#8220;Statistics on Rows&#8221; menu<\/h4>\n<p>To\u00a0generate the basic statistics row by row, choose menu <strong>Statistics&gt; Descriptive Statistics&gt; Statistics on Rows<\/strong>.<\/p>\n<p>The dialog provides over 30 options and interactive GUI for user to calculate descriptive statistics on rows for\u00a0contiguous data<\/p>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats_dlg.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-839\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats_dlg.png\" alt=\"610_desc_row_stats_dlg\" width=\"700\" height=\"653\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats_dlg.png 728w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats_dlg-300x280.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>Statistics on rows for non-contiguous data\/Multiple Sheet<\/h4>\n<p>While the <strong>Statistics on Rows<\/strong> menu provides\u00a0advanced settings and interactive GUI to user,\u00a0there is another quick way,<a href=\"http:\/\/www.originlab.com\/doc\/X-Function\/ref\/rowstats\"> <strong>rowstats<\/strong><\/a>, which enables to\u00a0get\u00a0row-wise statistics for more flexible input data range. The <strong>rowstats<\/strong> x-function supports seven outputs<\/p>\n<ul>\n<li>Mean<\/li>\n<li>Standard Deviation (SD)<\/li>\n<li>Standard Error of Mean (SE)<\/li>\n<li>Minimum<\/li>\n<li>Maximum<\/li>\n<li>Number of Points<\/li>\n<li>Sum<\/li>\n<\/ul>\n<p><span style=\"color: blue;\"><strong>\u00a0CASE-1.\u00a0Statistics on rows for non-contiguous data<\/strong><\/span><\/p>\n<p>Sometimes the data are stored in non-contiguous columns, or non-contiguous rows. The\u00a0<strong>rowstats<\/strong> x-function can help to generate row-wise statistics on selected ranges.<\/p>\n<ol>\n<li>Open the Script Window from <strong>Window: Script Window<\/strong> menu<\/li>\n<li>Press <strong>Ctrl\u00a0<\/strong>key to select non-contiguous ranges in worksheet<\/li>\n<li>Type the following in the Script Window, then press Enter:\n<pre style=\"padding-left: 120px;\" class=\"\">rowstats<\/pre>\n<\/li>\n<li>The row-wise statistics for selected range will be generated in the columns next to the input column<\/li>\n<\/ol>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_-non-contiguous_data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-702\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_-non-contiguous_data.png\" alt=\"610_row_stats_ non-contiguous_data\" width=\"890\" height=\"421\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_-non-contiguous_data.png 890w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_-non-contiguous_data-300x142.png 300w\" sizes=\"auto, (max-width: 890px) 100vw, 890px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: blue;\"><strong>CASE-2. Statistics on rows from multiple sheet<\/strong><\/span><br \/>\nIf the data are stored in different worksheet\/workbook and you want to create a new workbook for the statistics on each row of certain columns, you can also use\u00a0the <strong>rowstats<\/strong> x-function.<\/p>\n<ol>\n<li>Prepare a worksheet to store the results<\/li>\n<li>Open the Script Window from <strong>Window: Script Window<\/strong> menu<\/li>\n<li>Type the following in the Script Window, then press Enter:\n<pre style=\"padding-left: 120px;\" class=\"\">rowstats -d<\/pre>\n<p><a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_rowstats_script_window.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-703\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_rowstats_script_window.png\" alt=\"610_rowstats_script_window\" width=\"288\" height=\"125\" \/><\/a><\/li>\n<li>In the opened dialog, click the Triangle button to the right of\u00a0<strong>Input.\u00a0<\/strong> Choose\u00a0<strong>Select Columns&#8230;<\/strong> from the context menu to specify columns in different sheet in the <strong>Column Browser<\/strong>.<\/li>\n<li>Click Interactive button to the right of desired outputs, now which\u00a0are <strong>Mean<\/strong> \u3001 <strong>Standard Deviation<\/strong>. And\u00a0select columns in the prepared worksheet.<br \/>\n<a href=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_multi_sheets.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-823\" src=\"http:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_multi_sheets.png\" alt=\"610_row_stats_multi_sheets\" width=\"700\" height=\"500\" srcset=\"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_multi_sheets.png 792w, https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_row_stats_multi_sheets-300x214.png 300w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><\/h4>\n<h4>Pros and cons of the two methods<\/h4>\n<table border=\"1\">\n<tbody>\n<tr style=\"height: 50px; background-color: #c9c9c9;\">\n<td style=\"text-align: center;\"><\/td>\n<td style=\"vertical-align: middle; text-align: center;\"><strong>Statistics on Rows<\/strong> menu<\/td>\n<td style=\"vertical-align: middle; text-align: center;\"><strong>rowstats<\/strong> x-function<\/td>\n<\/tr>\n<tr>\n<td><strong>Input<\/strong><\/td>\n<td>Only allow the same sheet<\/td>\n<td style=\"border-color: #969393;\">Flexible, can be from any sheet<\/td>\n<\/tr>\n<tr>\n<td><strong>Computation Control<\/strong><\/td>\n<td>\u00a0Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td><strong>Output Quantities<\/strong><\/td>\n<td>30+<\/td>\n<td>7<\/td>\n<\/tr>\n<tr>\n<td><strong>Run as Labtalk<\/strong><\/td>\n<td>Maybe, very hard<\/td>\n<td>Straight forward<\/td>\n<\/tr>\n<tr>\n<td><strong>Dialog<\/strong><\/td>\n<td>Nice<\/td>\n<td><a href=\"http:\/\/www.originlab.com\/doc\/Origin-Help\/XF-Technology\">x-function<\/a>, can be opened with &#8220;-d&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Origin provides tools for user to generate\u00a0basic statistics for rows &hellip; <\/p>","protected":false},"author":19,"featured_media":836,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[4],"tags":[],"class_list":["post-610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-analysis"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7DvU2-9Q","jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/blog.originlab.com\/wp-content\/uploads\/2015\/01\/610_desc_row_stats.png","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/comments?post=610"}],"version-history":[{"count":36,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/610\/revisions"}],"predecessor-version":[{"id":16879,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/posts\/610\/revisions\/16879"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media\/836"}],"wp:attachment":[{"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/media?parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/categories?post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.originlab.com\/ja\/wp-json\/wp\/v2\/tags?post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}