How to organize your data
如何组织你的数据
1. Now all you need to do now is select the first 100 rows of data your table. Use your mouse and drag down to row 101 (we go to row 101 because the first row contains the column headings).
现在,所有你现在需要做的是选择第一个100行的数据表。使用鼠标向下拖动到第101行(我们去的第101行,因为第一行包含列标题)。
2. We are now going to copy the first 100 observations to another worksheet (Sheet 2!). Press Ctrl-C
现在,我们要复制到另一个工作表(表2)第100个观测。按Ctrl-C
3. Now click Sheet2 (in red above), and select cell A1. Then press Ctrl-V to paste:
现在单击Sheet2中(红色以上),并选择单元格A1。然后按Ctrl-V粘贴:
4. Now that you have your random sample of 100, you will want to split it into 2 sub-samples. As an example, let use divide our sample by Customer Type:
现在,你有你的随机抽样100,你会想它分割成2个子样本。作为一个例子,我们使用按客户类别划分我们的样本:
http://ukthesis.org/thesis_sample
a. Select a cell in the table and press Ctrl-A to select the entire sample.
选择表中的一个单元格,然后按Ctrl-A键选择整个样本。
b. Click Data->Sort. We want to sort by Customer Type (column B).
点击数据排序。我们要排序按客户类别(B列)。
5. Now scroll down the data set and look at column B. We want to find the first row containing a „Regular‟ customer. In this example, we want to take all rows starting for row 57 and move them to a separate part of the spreadsheet.
现在,向下滚动的数据集,并期待在B列,我们希望找到的第一行包含一个“普通”顾客。在这个例子中,我们要采取一切行57行开始,将它们移动到一个单独的电子表格的一部分。
6. Use your mouse to select the first now containing a „Regular‟ customer. Then Ctrl-Shift-(down key ↓).
使用鼠标选择现在包含一个“普通”顾客第一。然后按Ctrl-Shift键(上下键↓)。
#p#分页标题#e#
7. All observations containing „Regular‟ customers should be selected. Now press press Ctrl-X to „cut‟.
应选择“常规”客户的所有观测。现在,按按Ctrl-X“剪切”。
8. Now scroll up to the top of the spreadsheet. Select cell K2 and click Ctrl-V to paste:
现在滚动到电子表格顶部。选择细胞K2点击Ctrl-V键粘贴:
9. Now copy the headings over to the new sub-table. Select cells A1-I1, press Ctrl-C then paste at K1.
现在的标题复制到新的子表。选择单元格A1-I1,然后按Ctrl-C粘贴在K1。
Now we‟ve successfully divided our sample by Customer Type! In effect, we have created 2 sub-samples, one sampling from the „Loyalty‟ customer population and the other from the „Regular‟ customer population.
“现在,我们已经成功地将我们的样本按客户类型划分!实际上,我们已经创建了2个子样本,一个抽样从“忠诚”的客户群体,并从“常规”的客户群体。
相关文章
UKthesis provides an online writing service for all types of academic writing. Check out some of them and don't hesitate to place your order.