-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathFileDataTable.ts
82 lines (75 loc) · 1.91 KB
/
FileDataTable.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export interface FileDataTable {
varQuantity?: number
caseQuantity?: number
recordsPerCase?: number
UNF: string
dataVariables: FileDataVariable[]
}
export interface FileDataVariable {
id: number
name: string
label?: string
weighted: boolean
variableIntervalType?: FileDataVariableIntervalType
variableFormatType?: FileDataVariableFormatType
formatCategory?: string
format?: string
isOrderedCategorical: boolean
fileOrder: number
UNF: string
fileStartPosition?: number
fileEndPosition?: number
recordSegmentNumber?: number
numberOfDecimalPoints?: number
variableMetadata?: FileDataVariableMetadata[]
invalidRanges?: FileDataVariableInvalidRanges[]
summaryStatistics?: object
variableCategories?: FileDataVariableCategory[]
}
export interface FileDataVariableMetadata {
id: number
metadataId: number
label?: string
isWeightVar: boolean
isWeighted: boolean
weightVariableId?: number
literalQuestion?: string
interviewInstruction?: string
postQuestion?: string
universe?: string
notes?: string
categoryMetadatas: FileDataVariableCategoryMetadata[]
}
export interface FileDataVariableCategoryMetadata {
wFreq?: number
categoryValue?: string
}
export interface FileDataVariableInvalidRanges {
beginValue?: string
hasBeginValueType: boolean
isBeginValueTypePoint: boolean
isBeginValueTypeMin: boolean
isBeginValueTypeMinExcl: boolean
isBeginValueTypeMax: boolean
isBeginValueTypeMaxExcl: boolean
endValue?: string
hasEndValueType: boolean
endValueTypeMax: boolean
endValueTypeMaxExcl: boolean
}
export interface FileDataVariableCategory {
label?: string
value?: string
isMissing: boolean
frequency?: number
}
export enum FileDataVariableIntervalType {
DISCRETE = 'discrete',
CONTIN = 'contin',
NOMINAL = 'nominal',
DICHOTOMOUS = 'dichotomous'
}
export enum FileDataVariableFormatType {
NUMERIC = 'NUMERIC',
CHARACTER = 'CHARACTER'
}