Summary of estimated objects of class spjctest.
summary.spjctest.Rd
This function summarizes estimated spjctest objects. The tables in the output include basic information for each test. blablabla...
Usage
# S3 method for spjctest
summary(object, ...)
Arguments
- object
An spjctest object including a list of htest.
- ...
further arguments passed to or from other methods.
Author
Fernando López | fernando.lopez@upct.es |
Román Mínguez | roman.minguez@uclm.es |
Antonio Páez | paezha@gmail.com |
Manuel Ruiz | manuel.ruiz@upct.es |
Examples
## Multinomial + Binomial using a sf multipolygon
data("provinces_spain")
sf::sf_use_s2(FALSE)
provinces_spain$Male2Female <- factor(provinces_spain$Male2Female > 100)
levels(provinces_spain$Male2Female) = c("men","woman")
provinces_spain$Older <- cut(provinces_spain$Older, breaks = c(-Inf,19,22.5,Inf))
levels(provinces_spain$Older) = c("low","middle","high")
f1 <- ~ Older + Male2Female
jc1 <- jc.test(formula = f1,
data = provinces_spain,
distr = "mc",
alternative = "greater",
zero.policy = TRUE)
#> although coordinates are longitude/latitude, st_intersects assumes that they are planar
summary(jc1)
#> <div id="ltlobasigb" style="overflow-x:auto;overflow-y:auto;width:auto;height:auto;">
#> <style>html {
#> font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', 'Fira Sans', 'Droid Sans', Arial, sans-serif;
#> }
#>
#> #ltlobasigb .gt_table {
#> display: table;
#> border-collapse: collapse;
#> margin-left: auto;
#> margin-right: auto;
#> color: #333333;
#> font-size: 16px;
#> font-weight: normal;
#> font-style: normal;
#> background-color: #FFFFFF;
#> width: auto;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #A8A8A8;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #A8A8A8;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_heading {
#> background-color: #FFFFFF;
#> text-align: center;
#> border-bottom-color: #FFFFFF;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_title {
#> color: #333333;
#> font-size: 125%;
#> font-weight: initial;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-color: #FFFFFF;
#> border-bottom-width: 0;
#> }
#>
#> #ltlobasigb .gt_subtitle {
#> color: #333333;
#> font-size: 85%;
#> font-weight: initial;
#> padding-top: 0;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-color: #FFFFFF;
#> border-top-width: 0;
#> }
#>
#> #ltlobasigb .gt_bottom_border {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_col_headings {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_col_heading {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 6px;
#> padding-left: 5px;
#> padding-right: 5px;
#> overflow-x: hidden;
#> }
#>
#> #ltlobasigb .gt_column_spanner_outer {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: normal;
#> text-transform: inherit;
#> padding-top: 0;
#> padding-bottom: 0;
#> padding-left: 4px;
#> padding-right: 4px;
#> }
#>
#> #ltlobasigb .gt_column_spanner_outer:first-child {
#> padding-left: 0;
#> }
#>
#> #ltlobasigb .gt_column_spanner_outer:last-child {
#> padding-right: 0;
#> }
#>
#> #ltlobasigb .gt_column_spanner {
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: bottom;
#> padding-top: 5px;
#> padding-bottom: 5px;
#> overflow-x: hidden;
#> display: inline-block;
#> width: 100%;
#> }
#>
#> #ltlobasigb .gt_group_heading {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #ltlobasigb .gt_empty_group_heading {
#> padding: 0.5px;
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> vertical-align: middle;
#> }
#>
#> #ltlobasigb .gt_from_md > :first-child {
#> margin-top: 0;
#> }
#>
#> #ltlobasigb .gt_from_md > :last-child {
#> margin-bottom: 0;
#> }
#>
#> #ltlobasigb .gt_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> margin: 10px;
#> border-top-style: solid;
#> border-top-width: 1px;
#> border-top-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 1px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 1px;
#> border-right-color: #D3D3D3;
#> vertical-align: middle;
#> overflow-x: hidden;
#> }
#>
#> #ltlobasigb .gt_stub {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ltlobasigb .gt_stub_row_group {
#> color: #333333;
#> background-color: #FFFFFF;
#> font-size: 100%;
#> font-weight: initial;
#> text-transform: inherit;
#> border-right-style: solid;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> padding-left: 5px;
#> padding-right: 5px;
#> vertical-align: top;
#> }
#>
#> #ltlobasigb .gt_row_group_first td {
#> border-top-width: 2px;
#> }
#>
#> #ltlobasigb .gt_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ltlobasigb .gt_first_summary_row {
#> border-top-style: solid;
#> border-top-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_first_summary_row.thick {
#> border-top-width: 2px;
#> }
#>
#> #ltlobasigb .gt_last_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_grand_summary_row {
#> color: #333333;
#> background-color: #FFFFFF;
#> text-transform: inherit;
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ltlobasigb .gt_first_grand_summary_row {
#> padding-top: 8px;
#> padding-bottom: 8px;
#> padding-left: 5px;
#> padding-right: 5px;
#> border-top-style: double;
#> border-top-width: 6px;
#> border-top-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_striped {
#> background-color: rgba(128, 128, 128, 0.05);
#> }
#>
#> #ltlobasigb .gt_table_body {
#> border-top-style: solid;
#> border-top-width: 2px;
#> border-top-color: #D3D3D3;
#> border-bottom-style: solid;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_footnotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_footnote {
#> margin: 0px;
#> font-size: 90%;
#> padding-left: 4px;
#> padding-right: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ltlobasigb .gt_sourcenotes {
#> color: #333333;
#> background-color: #FFFFFF;
#> border-bottom-style: none;
#> border-bottom-width: 2px;
#> border-bottom-color: #D3D3D3;
#> border-left-style: none;
#> border-left-width: 2px;
#> border-left-color: #D3D3D3;
#> border-right-style: none;
#> border-right-width: 2px;
#> border-right-color: #D3D3D3;
#> }
#>
#> #ltlobasigb .gt_sourcenote {
#> font-size: 90%;
#> padding-top: 4px;
#> padding-bottom: 4px;
#> padding-left: 5px;
#> padding-right: 5px;
#> }
#>
#> #ltlobasigb .gt_left {
#> text-align: left;
#> }
#>
#> #ltlobasigb .gt_center {
#> text-align: center;
#> }
#>
#> #ltlobasigb .gt_right {
#> text-align: right;
#> font-variant-numeric: tabular-nums;
#> }
#>
#> #ltlobasigb .gt_font_normal {
#> font-weight: normal;
#> }
#>
#> #ltlobasigb .gt_font_bold {
#> font-weight: bold;
#> }
#>
#> #ltlobasigb .gt_font_italic {
#> font-style: italic;
#> }
#>
#> #ltlobasigb .gt_super {
#> font-size: 65%;
#> }
#>
#> #ltlobasigb .gt_footnote_marks {
#> font-style: italic;
#> font-weight: normal;
#> font-size: 75%;
#> vertical-align: 0.4em;
#> }
#>
#> #ltlobasigb .gt_asterisk {
#> font-size: 100%;
#> vertical-align: 0;
#> }
#>
#> #ltlobasigb .gt_slash_mark {
#> font-size: 0.7em;
#> line-height: 0.7em;
#> vertical-align: 0.15em;
#> }
#>
#> #ltlobasigb .gt_fraction_numerator {
#> font-size: 0.6em;
#> line-height: 0.6em;
#> vertical-align: 0.45em;
#> }
#>
#> #ltlobasigb .gt_fraction_denominator {
#> font-size: 0.6em;
#> line-height: 0.6em;
#> vertical-align: -0.05em;
#> }
#> </style>
#> <table class="gt_table">
#> <thead class="gt_header">
#> <tr>
#> <th colspan="5" class="gt_heading gt_title gt_font_normal gt_bottom_border" style>JoinCount Spatial Tests (Monte Carlo)</th>
#> </tr>
#>
#> </thead>
#> <thead class="gt_col_headings">
#> <tr>
#> <th class="gt_col_heading gt_columns_bottom_border gt_left" rowspan="1" colspan="1">pairs</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1">pvalue</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1">Joincount</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1">Expected</th>
#> <th class="gt_col_heading gt_columns_bottom_border gt_right" rowspan="1" colspan="1">Variance</th>
#> </tr>
#> </thead>
#> <tbody class="gt_table_body">
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Older - multinomial - alternative: greater - Monte-Carlo simulation of
#> join-count statistic (nonfree sampling)</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">high:high</td>
#> <td class="gt_row gt_right">0.41800</td>
#> <td class="gt_row gt_right">14</td>
#> <td class="gt_row gt_right">13.93</td>
#> <td class="gt_row gt_right">10.46</td></tr>
#> <tr><td class="gt_row gt_left">low:low</td>
#> <td class="gt_row gt_right">0.59100</td>
#> <td class="gt_row gt_right">7</td>
#> <td class="gt_row gt_right">8.18</td>
#> <td class="gt_row gt_right">6.04</td></tr>
#> <tr><td class="gt_row gt_left">middle:middle</td>
#> <td class="gt_row gt_right">0.60500</td>
#> <td class="gt_row gt_right">13</td>
#> <td class="gt_row gt_right">13.79</td>
#> <td class="gt_row gt_right">10.13</td></tr>
#> <tr><td class="gt_row gt_left">low:high</td>
#> <td class="gt_row gt_right">0.45300</td>
#> <td class="gt_row gt_right">24</td>
#> <td class="gt_row gt_right">23.05</td>
#> <td class="gt_row gt_right">16.25</td></tr>
#> <tr><td class="gt_row gt_left">middle:high</td>
#> <td class="gt_row gt_right">0.65700</td>
#> <td class="gt_row gt_right">28</td>
#> <td class="gt_row gt_right">29.28</td>
#> <td class="gt_row gt_right">17.46</td></tr>
#> <tr><td class="gt_row gt_left">middle:low</td>
#> <td class="gt_row gt_right">0.27400</td>
#> <td class="gt_row gt_right">25</td>
#> <td class="gt_row gt_right">22.77</td>
#> <td class="gt_row gt_right">15.42</td></tr>
#> <tr><td class="gt_row gt_left">Jtot</td>
#> <td class="gt_row gt_right">0.37100</td>
#> <td class="gt_row gt_right">77</td>
#> <td class="gt_row gt_right">75.10</td>
#> <td class="gt_row gt_right">20.20</td></tr>
#> <tr class="gt_group_heading_row">
#> <td colspan="5" class="gt_group_heading">Male2Female - binomial - alternative: greater - Monte-Carlo simulation of join-count statistic</td>
#> </tr>
#> <tr class="gt_row_group_first"><td class="gt_row gt_left">men-men</td>
#> <td class="gt_row gt_right">0.52400</td>
#> <td class="gt_row gt_right">60</td>
#> <td class="gt_row gt_right">60.37</td>
#> <td class="gt_row gt_right">23.62</td></tr>
#> <tr><td class="gt_row gt_left">woman-woman</td>
#> <td class="gt_row gt_right">0.02900</td>
#> <td class="gt_row gt_right">13</td>
#> <td class="gt_row gt_right">7.16</td>
#> <td class="gt_row gt_right">6.66</td></tr>
#> </tbody>
#>
#>
#> </table>
#> </div>