Skip to content

Commit

Permalink
readme edits
Browse files Browse the repository at this point in the history
  • Loading branch information
joshyam-k committed Dec 13, 2023
1 parent b1f1a74 commit 18bcf96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The available variance estimation techniques are:
- LinHB
- LinHH
- LinHTSRS
- LinHT,
- LinHT
- bootstrapSRS

See `mase/inst/REFERENCES.bib` for sources related to each variance estimator.
Expand Down Expand Up @@ -127,19 +127,19 @@ greg_est["coefficients"]
All of the mase regression estimators can also perform variable selection internally using the parameter `modelselect`

```{r, message = FALSE}
greg_est <- greg(y = samp$BA_TPA_ADJ,
N = pop$npixels,
xsample = xsample,
xpop = xpop,
modelselect = TRUE,
var_est = TRUE,
var_method = "LinHB",
datatype = "means")
greg_select <- greg(y = samp$BA_TPA_ADJ,
N = pop$npixels,
xsample = xsample,
xpop = xpop,
modelselect = TRUE,
var_est = TRUE,
var_method = "LinHB",
datatype = "means")
```

And we can examine which predictors were chosen:

```{r}
greg_est["coefficients"]
greg_select["coefficients"]
```

20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The available variance estimation techniques are:
- LinHB
- LinHH
- LinHTSRS
- LinHT,
- LinHT
- bootstrapSRS

See `mase/inst/REFERENCES.bib` for sources related to each variance
Expand Down Expand Up @@ -165,20 +165,20 @@ All of the mase regression estimators can also perform variable
selection internally using the parameter `modelselect`

``` r
greg_est <- greg(y = samp$BA_TPA_ADJ,
N = pop$npixels,
xsample = xsample,
xpop = xpop,
modelselect = TRUE,
var_est = TRUE,
var_method = "LinHB",
datatype = "means")
greg_select <- greg(y = samp$BA_TPA_ADJ,
N = pop$npixels,
xsample = xsample,
xpop = xpop,
modelselect = TRUE,
var_est = TRUE,
var_method = "LinHB",
datatype = "means")
```

And we can examine which predictors were chosen:

``` r
greg_est["coefficients"]
greg_select["coefficients"]
#> $coefficients
#> (Intercept) tcc elev ppt
#> -33.24787647 0.65151379 0.04209371 0.06643125
Expand Down

0 comments on commit 18bcf96

Please sign in to comment.