772 questions
Advice
0
votes
5
replies
48
views
SEs are altered when converting predicted values from a 'svrepstat' object into a data frame
folks-
I'm using the wonderful 'survey' library in R, but running into a problem when I use predict to recover the predicted point estimates and standard errors, then convert them into a data frame to ...
2
votes
0
answers
89
views
Quantify sum of squared differences in a robust multilinear regression in R
I would like to obtain estimates of the variance explained by each predictor in multiple regression using robust linear regression (for instance with the R function lmrob from robustbase R package or ...
5
votes
1
answer
91
views
How do I replicate Stata's quadvariance() function for high-precision variance calculation in R?
In Stata, there's a function called quadvariance() which computes variance using quad precision (extended floating-point arithmetic) to reduce numerical errors, especially in datasets with very small ...
3
votes
0
answers
61
views
Variance Annotation for an independent Method level type parameters in scala?
Consider this example from book Programming in Scala, 5th Edition by Martin Odersky (Chapter 18 · Type Parameterization)
Here - the following class Cat is described:
abstract class Cat[-T, +U]:
def ...
0
votes
0
answers
51
views
MS Excel Pivot Table calculating variance column when data specific format
I have a data table and want to create a pivot table off it (top part of image) with a variance field Calculated as the NPV difference (change/movement) between Period D and F (middle part).
I have ...
0
votes
0
answers
27
views
What is happening when I model the sigma term in a glmm with a Gaussian distribution in brms
If I am interested in understanding the effect of an interaction between treatment and covariates on the variance of my response, as well as how they may affect the mean of my response, can I write a ...
0
votes
0
answers
57
views
Change in % calculation from previous year using custom fiscal week numbers
I need help with creating a working dax formula in Power Bi desktop.
I am trying to calculate percentage change year over year but using fiscal week numbers as we have a retail 4-4-5 custom calendar ...
0
votes
1
answer
88
views
Plan/Actual/Variance for absolute AND relative metrics in DAX (Excel, not PBI)
I'm trying to find an unified approach to show Plan/Actual/Variance for both absolute and relative metrics.
There are several datasets, which are generally structured similarly. They have
Dates (...
2
votes
0
answers
111
views
Regarding the contravariance of fn(&'a i32) -> ()
As is well known, contravariance is quite rare in Rust. According to the Rust Reference on variance, only fn(T) -> () is contravariant on T. I’ve never fully understood how the following conclusion ...
0
votes
0
answers
59
views
Scala function consume and return the same upper-bound type
Consider the following:
sealed trait IntTree
case class Leaf(value: Int) extends IntTree
case class Branch(left: IntTree, value: Int, right : IntTree)
def test[A <: IntTree](x: A): A = {
...
3
votes
2
answers
217
views
Calculate threshold, so that 99% of random string have higher entropy
I am trying to calculate the distribution of the Shannon entropy for all possible random strings of length N.
(by random, I mean that each letter at each position is picked with equal probability)
To ...
1
vote
1
answer
70
views
How to optimally stretch and uniformize 1-dimensional integer points?
The data:
Let X be an array of labeled integers roughly in the domain [0, 2000000]. The size |X| is around 3000 elements. The labels are in the domain [A, B, C].
For example: [(13, A), (16, B), (32, A)...
1
vote
0
answers
38
views
How to check if a variable varies across timestamps or across samples
Let's assume we have some time-series data where every person (sample) has measurements for 2 variables (Var1, Var2) for three timepoints. Following is a dummy representation of the data.
Is there a ...
1
vote
0
answers
112
views
Calculating variance of gradient of barren plateau problem in quantum variational circuit
In paper Cost function dependent barren plateaus in shallow
parametrized quantum circuits, the author exhibit an warm-up example in page 2 to show the barren plateau phenomenon. In this example, the ...
0
votes
1
answer
162
views
Strange values for r2_nakagawa() with easystats
I have been evaluating the quality of modelfit with the easystats package (0.7.1.3). Since I have mixed models I use the r2_nakagawa() function and since the last update I did (easystats::...