Data Dictionary




::: {.div1} 

#### VARNAME

::: 
::: {.div2} 

**LABEL**: Ipsum is simply dummy text of the printing and typesetting industry.

::: 
::: {.div3} 

**DATA TYPE**: numeric

**SCOPE**: PZ

::: 
::: {.div4} 

**DESCRIPTION**: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

##### LEVELS

|FLEVEL |LABEL      | 
|:------|:----------| 
|AL     |Alabama    | 
|AK     |Alaska     | 
|AZ     |Arizona    | 
|AR     |Arkansas   | 
|CA     |California | 
|CO     |Colorado   | 


**LOCATION CODE**: SCHED-A-PART-01-LINE-01

::: 
::: {.div5} 

##### Properties

|p1           |p2    | 
|:------------|:-----| 
|Distinct (n) |49156 | 
|Distinct (%) |3.7   | 
|Missing (n)  |934   | 
|Missing (%)  |0.3   | 


::: 
::: {.div6} 

##### Quantiles

|q1   |   q2| 
|:----|----:| 
|Q-05 |    0| 
|Q-25 |  100| 
|Q-50 |  500| 
|Q-75 |  900| 
|Q-95 | 1234| 


::: 
::: {.div7} 

##### Statistics

|s1       |s2 | 
|:--------|:--| 
|Min      |x  | 
|Median   |x  | 
|Mean     |x  | 
|Max      |x  | 
|Skew     |x  | 
|Kurtosis |x  | 


::: 
::: {.div8} 

::: 
::: {.div9} 

##### Example values

|     V1|     V2|      V3|     V4|     V5| 
|------:|------:|-------:|------:|------:| 
| -65261| 174181| -104647|  65613| -14622| 
|  61204|  92841|  263442| 137086| 185509| 
|  71297| 112758|  206387|  68289|  44815| 
| -68674| -58393|   29422| 180519|  23709| 
| 304498|  60070|   95432| -40451|  75607| 


::: 




# results="asis"
create_section( x1=vname, x2=vlabel, x3=vtype, x4=vscope, 
                x5=desc, x6=k, x7=loc, x8=p, x9=q, x10=s )

VARNAME

LABEL: Ipsum is simply dummy text of the printing and typesetting industry.

DATA TYPE: numeric

SCOPE: PZ

DESCRIPTION: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

LEVELS
FLEVEL LABEL
AL Alabama
AK Alaska
AZ Arizona
AR Arkansas
CA California
CO Colorado

LOCATION CODE: SCHED-A-PART-01-LINE-01

Properties
p1 p2
Distinct (n) 49156
Distinct (%) 3.7
Missing (n) 934
Missing (%) 0.3
Quantiles
q1 q2
Q-05 0
Q-25 100
Q-50 500
Q-75 900
Q-95 1234
Statistics
s1 s2
Min x
Median x
Mean x
Max x
Skew x
Kurtosis x

Example values
V1 V2 V3 V4 V5
-65261 174181 -104647 65613 -14622
61204 92841 263442 137086 185509
71297 112758 206387 68289 44815
-68674 -58393 29422 180519 23709
304498 60070 95432 -40451 75607




create_section2 <- function( x1=vname,
                            x2=vlabel, x2.lab="LABEL",
                            x3=vtype, x3.lab="DATA TYPE", 
                            x4=vscope, x4.lab="SCOPE",
                            x5=desc, x5.lab="DESCRIPTION", 
                            x6=k, x6.lab="LEVELS", 
                            x7=loc, x7.lab="LOCATION CODE",
                            x8=p, x8.lab="Properties",
                            x9=q, x9.lab="Quantiles",
                            x10=s, x10.lab="Statistics",
                            x11=t3k, x11.lab="Example values")
{
    cat( "{{< pagebreak >}} \n\n")  # add page break between variables?
    cat( "::::: {.parent} \n\n" )
    create_div1( x1=vname )
    # create_div2( x2=vlabel )
    create_div3( x3=vtype, x4=vscope )
    create_div4( x5=desc, x6=k, x7=loc )
    create_div5( x8=p )
    # create_div6( x9=q )
    create_div7( x10=s )
    create_div8( )
    # create_div9( x11=t3k )
    cat( ":::::" )
}
# results="asis"
create_section2( x1=vname, x2=vlabel, x3=vtype, x4=vscope, 
                x5=desc, x6=k, x7=loc, x8=p, x9=q, x10=s )

VARNAME

DATA TYPE: numeric

SCOPE: PZ

DESCRIPTION: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

LEVELS
FLEVEL LABEL
AL Alabama
AK Alaska
AZ Arizona
AR Arkansas
CA California
CO Colorado

LOCATION CODE: SCHED-A-PART-01-LINE-01

Properties
p1 p2
Distinct (n) 49156
Distinct (%) 3.7
Missing (n) 934
Missing (%) 0.3
Statistics
s1 s2
Min x
Median x
Mean x
Max x
Skew x
Kurtosis x