Questions tagged [weighting]
81 questions
1
vote
1 answer
How to implement time-weighting in SPL Meter?
I would like to develop an android app to meassure sound pressure level but i am not sure how to implement time weighting.
For the moment my algorithm works as follows:
Record 20ms of audio (160 samples @ 8000Hz)
Compute RMS
Calculate SPL
Update…

beleza_pura
- 63
- 1
- 6
1
vote
1 answer
Oracle Text : How to not count a part of the query for scoring?
I have a multicolumn datastore indexed using Oracle Text, and I am running queries using Contains keyword.
To weight the different columns differently I proceed as follow.
If the user searches for "horrible", the query issued to oracle will look…

Stéphane
- 11,755
- 7
- 49
- 63
0
votes
0 answers
Compensate acceleration changes in a load cell's readings using an accelerometer
I'm reading weight with a load cell that's fixed on a moving body. Said body drives arround many uneven trails. I've tried using an accelerometer to compensate the vertical acceleration, making it so that the normal force is always 9.8 * mass, but…
0
votes
0 answers
Error Message when Estimating Weighted Logistic Multilevel Regression in Stata
I have a large dataset from hospitals that follows a hierarchical structure with over 6 million observations. I am trying to run a multilevel logistic regression using Stata 14.2. The outcome variable is a binary variable indicating whether patients…

Munira Kashem
- 1
- 2
0
votes
0 answers
CRAN/R: Spatial weights matrix from coordinates
Here is my dput:
structure(list(longitude = c(-87.7225799560547, -88.207893371582,
-85.7975158691406, -85.7160568237305, -85.5187377929688, -86.2476654052735,
-86.6500701904297, -85.2413940429688, -87.9522247314453, -86.165901184082,…

ZZ Top
- 93
- 5
0
votes
0 answers
How to run libpysal.weights.Distanceband without kernel crashing?
I have a dataset that has longitudes and latitudes, and the number of elections a given individual has voted in the elections. My goal is to run a G_Local as I would like to identify
the degree of clustering that happens for the number of elections…
0
votes
0 answers
Paired sign test with weighting
In R, I am using the survey package to conduct these tests on paired data:
Weighted Wilcoxon Signed Rank test
Weighted Sign test
However, I am struggling in doing them.
By defining a design and then using the functions
signed_rank<-function (x)…
0
votes
0 answers
How can I rescale weights that are calculated by trimWeights (package survey in R)?
I have a question regarding R and surveydata. In my data (N=5,017) I assigned a weightfactor to all respondents which are calculated by combining 3 factors: neighbourhood (N=14), age (N=3) and gender (N=2). With: max = 6.2, min = 0.3 and mean = 1.…

denboschmg
- 1
- 1
0
votes
1 answer
Anesrake in R: error "no variables are off by 5pc"
I'm trying to apply the anesrake to a data dataset, but am getting the error message "No variables are off by more than 5 percent using the method you have chosen, either weighting is unnecessary or a smaller pre-raking limit should be chosen".
I…

Andrew Davies
- 1
- 1
0
votes
2 answers
How to use svydesign data object in R for NESARC-III data OR apply survey weights in SPSS?
I am using a large national dataset for the first time, specifically a subset of the NESARC-III (N=26960). I have the data in SPSS because I used that software to clean it (creating variables, defining missings, etc.)simply because I am not as…

MLamotte
- 1
- 2
0
votes
0 answers
R package for survey raking that does automatic cell collapsing
I know there are various R packages for performing raking (i.e. calibration to external estimates, iterative proportional fitting, etc) to construct survey weights. I wanted to find a package that would automatically collapse cells if a cell count…

J Egg
- 1
0
votes
0 answers
Weighting input parameters in XGBoost regression
I am trying to use XGBoost (in Python) to predict advertising campaign revenue based on several features, including the day the campaign is active, number of installs, and the spend. What I would like to do is to configure XGBoost in such a way that…

Nata
- 49
- 6
0
votes
1 answer
Iteratively remove unsorted rows on condition until defined dataframe size reached
How can I reduce the size of a dataframe, a row at a time based on a condition(partnersCount =1, & selectionWeighting in order - lowest to highest) until the dataframe is a specified size.
Psuedo:
iterate the size of the df bigger than we expect //…

John
- 39
- 5
0
votes
0 answers
Percentage weighting of four variables to equal a target
I'm using excel and have got four variables for my model and would like to find the perecentage weighting blending all four variables together to equal the target.
The target is 1.15
a = 1.48 b = 2.15 c = 0.85 d = 1.62

Kyzer
- 1
- 1
- 2
0
votes
0 answers
cv2.addweighted - weighted picture appears too bright
I am using cv2 toolbox and want to mix / weight two pictures, where one picture is a mask of an apparel piece appearing in the first picture. However the weighted picture appears way too bright, independent of the parameter values. I switched alpha,…

Entropie_13
- 11
- 5