Skip to content

Commit

Permalink
4.2-99
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderrobitzsch committed Nov 30, 2024
1 parent 92c1ecd commit 124e4b1
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 25 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: sirt
Type: Package
Title: Supplementary Item Response Theory Models
Version: 4.2-97
Date: 2024-11-28 16:55:42
Version: 4.2-99
Date: 2024-11-30 11:02:30
Author: Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>)
Maintainer: Alexander Robitzsch <[email protected]>
Description:
Expand Down
2 changes: 1 addition & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## File Name: RcppExports.R
## File Version: 4.002097
## File Version: 4.002099
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

Expand Down
9 changes: 5 additions & 4 deletions R/locpolycor.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
## File Name: locpolycor.R
## File Version: 0.257
## File Version: 0.271


locpolycor <- function(y, data.mod, moderator.grid, h=1.1,
model_thresh, model_polycor, kernel="gaussian",
model_thresh, model_polycor, sampling_weights=NULL,
kernel="gaussian",
eps=1e-10)
{
#- compute weights
llw <- lsem_local_weights(data.mod=x, moderator.grid=moderator.grid, h=h,
kernel=kernel)
llw <- lsem_local_weights(data.mod=data.mod, moderator.grid=moderator.grid, h=h,
kernel=kernel, sampling_weights=sampling_weights)
weights_grid <- llw$weights

#- estimate thresholds
Expand Down
2 changes: 1 addition & 1 deletion R/lsem_local_weights.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## File Name: lsem_local_weights.R
## File Version: 0.219
## File Version: 0.222

lsem_local_weights <- function(data.mod, moderator.grid, h,
sampling_weights=NULL, bw=NULL, kernel="gaussian",
Expand Down
5 changes: 3 additions & 2 deletions R/mcmc.2pno_alg.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## File Name: mcmc.2pno_alg.R
## File Version: 1.22
## File Version: 1.241


######################
Expand Down Expand Up @@ -117,7 +117,8 @@
w1 <- weights / sum(weights )
m1 <- colMeans( theta.chain )
v1 <- sum( m1^2 * w1 ) - ( sum( m1*w1 ) )^2
wM <- matrix( w1, nrow=nrow(theta.chain), ncol=ncol(theta.chain), byrow=TRUE )
wM <- matrix( w1, nrow=nrow(theta.chain), ncol=ncol(theta.chain),
byrow=TRUE )
h1 <- rowSums( wM * theta.chain^2 ) - ( rowSums( wM * theta.chain ) )^2
h1 <- mean(h1)
EAP.rel <- v1 / h1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ The CRAN version can be installed from within R using:
utils::install.packages("sirt")
```

#### GitHub version `sirt` 4.2-97 (2024-11-28)
#### GitHub version `sirt` 4.2-99 (2024-11-30)

[![](https://img.shields.io/badge/github%20version-4.2--97-orange.svg)](https://github.com/alexanderrobitzsch/sirt)&#160;&#160;
[![](https://img.shields.io/badge/github%20version-4.2--99-orange.svg)](https://github.com/alexanderrobitzsch/sirt)&#160;&#160;

The version hosted [here](https://github.com/alexanderrobitzsch/sirt) is the development version of `sirt`.
The GitHub version can be installed using `devtools` as:
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ pandoc: 3.1.1
pkgdown: 2.0.7
pkgdown_sha: ~
articles: {}
last_built: 2024-11-28T16:18Z
last_built: 2024-11-30T10:23Z

5 changes: 4 additions & 1 deletion docs/reference/locpolycor.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CHANGELOG sirt


------------------------------------------------------------------------
VERSIONS sirt 4.2 | 2024-11-28 | Last: sirt 4.2-97
VERSIONS sirt 4.2 | 2024-11-30 | Last: sirt 4.2-99
------------------------------------------------------------------------

FIXED * fixed a bug in handling sufficient statistics in
Expand Down
5 changes: 3 additions & 2 deletions man/locpolycor.Rd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%% File Name: locpolycor.Rd
%% File Version: 0.07
%% File Version: 0.082

\name{locpolycor}
\alias{locpolycor}
Expand All @@ -13,7 +13,7 @@ continuous moderator variable \eqn{x}.
}
\usage{
locpolycor(y, data.mod, moderator.grid, h=1.1, model_thresh, model_polycor,
kernel="gaussian", eps=1e-10)
sampling_weights=NULL, kernel="gaussian", eps=1e-10)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
Expand All @@ -38,6 +38,7 @@ Model for thresholds: can be \code{'const'} (constant function) or \code{'lin'}
Model for polychoric correlations: can be \code{'const'} (constant function) or
\code{'lin'} (linear function)
}
\item{sampling_weights}{Optional vector of sampling weights}
\item{kernel}{
Used kernel function, see \code{\link{lsem_local_weights}}
}
Expand Down
2 changes: 1 addition & 1 deletion src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//// File Name: RcppExports.cpp
//// File Version: 4.002097
//// File Version: 4.002099
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

Expand Down

0 comments on commit 124e4b1

Please sign in to comment.