InseeFr / InseeFr/icarus

Bounds not working

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
12
Forks
7
Avg merge
4d 1h
Merged PRs (30d)
2

Description

When I run the following, I get minimum and maximum weight values that are outside the bounds. Sorry if I've misunderstood the documentation...

library(icarus)
mar1 <- c("categ",3,80,90,60)
mar2 <- c("sexe",2,140,90,0)
mar3 <- c("service",2,100,130,0)
mar4 <- c("salaire", 0, 470000,0,0)
margins <- rbind(mar1, mar2, mar3, mar4)
wCal <- calibration(data = data_ex2,
marginMatrix = margins,
colWeights="poids",
method = "logit",
bounds = c(3, 38),
description=FALSE)
range(wCal)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.