Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning total and mean. Removing by and other files. #114

Merged
merged 8 commits into from
Dec 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 make have of heights of people, but you want the average height of male and female 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