Skip to content

Commit

Permalink
fixed typos (#125)
Browse files Browse the repository at this point in the history
* Fixed Typo
closes #114

* fixed typo
closes #113

* fixed typo
closes #112
  • Loading branch information
nickhaf authored Jun 23, 2022
1 parent 6ed04d0 commit b0baeac
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/src/tutorials/concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Here is an overview on the available building blocks:
| | | [`SemRidge`](@ref) | |
| | | [`SemConstant`](@ref) | |

The rest of this page is explains the building blocks for each part. First, we explain every part and give an overview on the different options that are available. After that, the [API - model parts](@ref) section serves as a reference for detailed explanations about the different options.
The rest of this page explains the building blocks for each part. First, we explain every part and give an overview on the different options that are available. After that, the [API - model parts](@ref) section serves as a reference for detailed explanations about the different options.
(How to stick them together to a final model is explained in the section on [Model construction](@ref).)

## The observed part aka [`SemObserved`](@ref)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/construction/construction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Model Construction

There are two different ways of constructing a SEM in our package. You can use the [Outer Constructor](@ref) oder [Build by parts](@ref).
There are two different ways of constructing a SEM in our package. You can use the [Outer Constructor](@ref) or [Build by parts](@ref).
The final models will be the same, the outer constructor just has some sensible defaults that make your life easier.
All tutorials until now used the outer constructor `Sem(specification = ..., data = ..., ...)`, which is normally the more convenient way.
However, our package is build for extensibility, so there may be cases where **user-defined** parts of a model do not work with the outer constructor.
Expand Down
2 changes: 1 addition & 1 deletion src/observed/covariance.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Subtype of `SemObserved`
## Remarks
(1) the `specification` argument can also be `nothing`, but this turns of checking whether
the observed data/covariance columns are in the correct order! As a result, you should only
use this if you are shure your covariance matrix is in the right format.
use this if you are sure your covariance matrix is in the right format.
## Additional keyword arguments:
- `spec_colnames::Vector{Symbol} = nothing`: overwrites column names of the specification object
Expand Down
4 changes: 2 additions & 2 deletions src/observed/data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Subtype of `SemObserved`
## Remarks
(1) the `specification` argument can also be `nothing`, but this turns of checking whether
the observed data/covariance columns are in the correct order! As a result, you should only
use this if you are shure your observed data is in the right format.
use this if you are sure your observed data is in the right format.
## Additional keyword arguments:
- `spec_colnames::Vector{Symbol} = nothing`: overwrites column names of the specification object
Expand Down Expand Up @@ -85,7 +85,7 @@ function SemObservedData(;
if data isa DataFrame
throw(ArgumentError(
"You passed your data as a `DataFrame`, but also specified `obs_colnames`. "*
"Please make shure the column names of your data frame indicate the correct variables "*
"Please make sure the column names of your data frame indicate the correct variables "*
"or pass your data in a different format.")
)
end
Expand Down
2 changes: 1 addition & 1 deletion src/observed/get_colnames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end

function get_colnames(specification::RAMMatrices)
if isnothing(specification.colnames)
@warn "Your RAMMatrices do not contain column names. Please make shure the order of variables in your data is correct!"
@warn "Your RAMMatrices do not contain column names. Please make sure the order of variables in your data is correct!"
return nothing
else
colnames = specification.colnames[specification.F_ind]
Expand Down
4 changes: 2 additions & 2 deletions src/observed/missing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Subtype of `SemObserved`
## Remarks
(1) the `specification` argument can also be `nothing`, but this turns of checking whether
the observed data/covariance columns are in the correct order! As a result, you should only
use this if you are shure your observed data is in the right format.
use this if you are sure your observed data is in the right format.
## Additional keyword arguments:
- `spec_colnames::Vector{Symbol} = nothing`: overwrites column names of the specification object
Expand Down Expand Up @@ -110,7 +110,7 @@ function SemObservedMissing(;
if data isa DataFrame
throw(ArgumentError(
"You passed your data as a `DataFrame`, but also specified `obs_colnames`. "*
"Please make shure the column names of your data frame indicate the correct variables "*
"Please make sure the column names of your data frame indicate the correct variables "*
"or pass your data in a different format.")
)
end
Expand Down
6 changes: 3 additions & 3 deletions test/unit_tests/data_input_formats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dat_mean = vcat(Statistics.mean(dat_matrix, dims = 1)...)
# errors
@test_throws ArgumentError(
"You passed your data as a `DataFrame`, but also specified `obs_colnames`. "*
"Please make shure the column names of your data frame indicate the correct variables "*
"Please make sure the column names of your data frame indicate the correct variables "*
"or pass your data in a different format.") begin
SemObservedData(specification = spec, data = dat, obs_colnames = Symbol.(names(dat)))
end
Expand Down Expand Up @@ -114,7 +114,7 @@ end
# errors
@test_throws ArgumentError(
"You passed your data as a `DataFrame`, but also specified `obs_colnames`. "*
"Please make shure the column names of your data frame indicate the correct variables "*
"Please make sure the column names of your data frame indicate the correct variables "*
"or pass your data in a different format.") begin
SemObservedData(specification = spec, data = dat, obs_colnames = Symbol.(names(dat)), meanstructure = true)
end
Expand Down Expand Up @@ -337,7 +337,7 @@ end
# errors
@test_throws ArgumentError(
"You passed your data as a `DataFrame`, but also specified `obs_colnames`. "*
"Please make shure the column names of your data frame indicate the correct variables "*
"Please make sure the column names of your data frame indicate the correct variables "*
"or pass your data in a different format.") begin
SemObservedMissing(specification = spec, data = dat_missing, obs_colnames = Symbol.(names(dat)))
end
Expand Down

0 comments on commit b0baeac

Please sign in to comment.