Skip to content

Commit 47c773c

Browse files
Create 4_next_time_period_variables.md
1 parent ba1ac2e commit 47c773c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: default
3+
title: Next Time Period Variables
4+
parent: Home
5+
nav_order: 4
6+
---
7+
8+
9+
# Appending Variables Representing the Next Time Period
10+
11+
Append to the dataset these additional 11 variables representing the impact on the next time period: org_silo2, mis_link2, silence2, congruence2, communicate2, code_dev2, file2, mail_dev2, thread2, commit2, churn2.
12+
13+
* These additional variables and how they are created is explained in the data dictionary near the beginning of this section.
14+
* Further detail: each of these 11 variables ending in “2” was created in Excel by first creating a new column having the appropriate column header and then in the column of the corresponding original variable (i.e., pertaining to the current time period), copy the values starting in row 3 through row 5563 into positions row 2 through row 5562 of that new column.
15+
* Of course, when performing this copy and paste, the values in row 2 for the original variables are ignored/lost; while for the corresponding next time-period variables, the values associated with the last time period of any CVE’s remediation no longer make sense (or are blank in the case of the very last row) and should be deleted.
16+
* To accomplish this deletion of the last time-period record for each CVE within Excel, create an indicator variable that indicates when a case represents the last time period for a CVE’s remediation. Detail: in row 2, insert a formula in a new column: “=IF([next-period cve_id]=[current cve_id],0,1)”, copy that cell and paste the formula onto the rest of the column; then copy-paste-value-only the entire column so that the formulas are replaced by their values. Then as we explained elsewhere, put a filter on that column, select only the rows with 1s (the rows that are the last cases for a CVE’s remediation) in the pull-down menu, and delete the resulting rows (i.e., the rows appearing under the header row). Then remove the filter and delete the indicator variable column.
17+
* As there were 5563 rows and there are 121 CVEs represented in the dataset, this should leave 5442 rows (after the header row). And instead of 15 columns, there should now be 26.
18+
19+
The result of this appending operation should look like this:
20+
21+
```diff
22+
+ openssl_social_smells_timeline..renameVariables..resolveMD..deleteLastRecordEachCVE.csv
23+
```

0 commit comments

Comments
 (0)