Skip to content

Commit

Permalink
Merge pull request #114 from ayushpatnaikgit/cleaning
Browse files Browse the repository at this point in the history
Cleaning total and mean. Removing by and other files.
  • Loading branch information
ayushpatnaikgit authored Dec 4, 2022
2 parents 3e27e4b + 006588e commit 28d0711
Show file tree
Hide file tree
Showing 14 changed files with 204 additions and 299 deletions.
14 changes: 12 additions & 2 deletions docs/src/R_comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,17 @@ svyby(~api00, ~cname, dsrs, svymean)
```

```julia
by(:api00, :cname, dsrs, mean)
mean(:api00, :cname, dsrs)
```

In the following example the total of the variable `api00` is calculated grouped by the variable `cname`.

```R
svyby(~api00, ~cname, dsrs, svytotal)
```

```julia
total(:api00, :cname, dsrs)
```

## Stratified sample
Expand Down Expand Up @@ -117,5 +127,5 @@ svyby(~api00, ~cname, dstrat, svymean)
```

```julia
by(:api00, :cname, dstrat, mean)
mean(:api00, :cname, dstrat)
```
3 changes: 2 additions & 1 deletion docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ quantile

It is often required to estimate population parameters for sub-populations of interest. For example, you may have a sample of heights, but you want the average heights of males and females separately.
```@docs
by
mean(x::Symbol, by::Symbol, design::SimpleRandomSample)
total(x::Symbol, by::Symbol, design::SimpleRandomSample)
```
```@docs
plot(design::AbstractSurveyDesign, x::Symbol, y::Symbol; kwargs...)
Expand Down
2 changes: 0 additions & 2 deletions src/Survey.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ include("hist.jl")
include("plot.jl")
include("dimnames.jl")
include("boxplot.jl")
include("by.jl")
include("ht.jl")
include("show.jl")

export load_data
Expand Down
82 changes: 0 additions & 82 deletions src/by.jl

This file was deleted.

40 changes: 0 additions & 40 deletions src/ht.jl

This file was deleted.

Loading

0 comments on commit 28d0711

Please sign in to comment.