instruction
stringlengths
9
38.7k
I never quite understood the rationale behind the Bonferroni correction. I understand that we want to reduce the FDR, but it seems odd to penalise a test based on the existence of another test, given that we do not even know if we have complete information about all possible test. As an example, say we perform some tes...
Imagine working on a linear multiple regression problem with a design-matrix $\Phi$ based upon some independent variables $x_k, k\in{}[1, r]$. The goal is to find an equation that explains the "true" relationship between a dependent variable $y$ and independent variables $x_k, k\in{}[1, r]$ e.g. of a recorded physica...
Good afternoon! Consider a problem: a panel regression is fitted to predict corporate bond yield credit spreads. Under "corporate bond spreads" term I mean difference between yield to maturity of a corporate bond and yield to maturity of a government bond with similar duration (to be more precize, instead of government...
My team and I are trying to identify group of customers to target for an investment promotion exercise. We decided to use the control group (which already are a part of this investment exercise) and use distance metrics on our test group (people we want to identify). As we have 50+ attributes, we decided to use Manhatt...
I have read somewhere that it is acceptable to have only one categorical variable as a predictor in the regression model. From my understanding, does it mean that the predicted outcome using this regression model will be always the same as the average of that level? If so, does it mean that the R squared value and p va...
Let $X_1,\ldots , X_n$ be iid Bernoulli$(p)$ $(0<p<1)$. Our sample is $x_1=\ldots x_n=1$. Suppose that the prior distribution of $p$ is Uniform$(0,1)$. Consider a Bayesian test for $H_0: p\geq 0.9$ vs $H_1: p<0.9$. Find a necessary and sufficient condition on $n$ that $H_0$ is rejected. I figured out that the posterior...
My question is close to this one which wasn't really answered: https://stackoverflow.com/questions/66571314/gls-with-arma-terms-not-working-for-one-combination-of-terms I am running models to understand the trends highlighted by a Principal Component Analysis regarding variability in the morphology of some plants. I ha...
I thought this would be an easy question to find an answer to, but for the life of me I am having trouble finding anything that fully addresses my current problem: Consider a situation where we are trying to measure the effects that a set of actions a person can take have on a binary outcome variable. There are 7 such ...
One way to construct informative priors for a subsequent Bayesian analysis is to carry out a meta-analysis of previous studies. Here, substantial research has been done. However, what to do when there is only one previous study that used a frequentist approach? Could we use estimates, and their standard errors, as para...
I have one variable A which is derived from subtracting C from B, i.e., A=B-C, does that mean B and C are both the causal factors of A if depicted in A DAG?
I am working on a project with the goal of predicting Cerebral strokes from brain arteries data (speed of blood, resistance etc. of one artery and of the neighboring ones). I have a dataset with labeled data but it's highly imbalanced: patients with stroke represent a minority, hence the models (tried RF, & some boosti...
In discussing Gaussian mixture models (GMMs), https://normaldeviate.wordpress.com/2012/08/04/mixture-models-the-twilight-zone-of-statistics/ highlights the issue of Multimodality of the Likelihood. In fact, the likelihood has many modes. Finding the global (but not infinite) mode is a nightmare. The EM [expectation-ma...
I am having a problem similar to one that has been discussed before, how to uniformly sample from the set of all partitions of a set, but with a few differences. First, for my case I want to sample from the set of all ordered partitions of a set. This seems easy enough, as in practice the $n$ urns you've probabilistica...
I am working on a Bayesian Cox Proportional Hazard model. I've started by implementing and running the Bayesian CPH example at https://docs.pymc.io/en/stable/pymc-examples/examples/survival_analysis/survival_analysis.html The example works fine, however, I've tried to extend that example to my own simulated dataset an...
Apologies for the confusing title - I've built a random forest model that predicts where someone is likely to finish in a competition based on about 50 variables and 12,000 observations. People can finish from 1-20th (Example). It's Accuracy across the entire population of prediction is encouraging. However I'm only re...
I am running basic regression in R, and the numbers I am working with are quite high. when I run the regression I receive the coefficient in numbers change. For instance, the dependent variable is "price" and the independent is "square meters" then I get a coefficient that is 50,427.120***. I was wondering if there is...
Without using matrices How can you derive OLS estimators in multiple regression ?
Question: Suppose we have two random variable $X$, $Y$ that follow non-Gaussian distribution, and we are given that: $$\operatorname { cum }(X, Y)=\operatorname { cum }(X, X, Y)=\operatorname { cum }(X, X, X, Y)=\cdots=0$$ Does this imply that $X$ and $Y$ are independent? If not, then are there any conditions under whi...
I am not familiar with multi-class prediction so I apologize in advance if this questions seem very basic. Here is my dataset: So within the dataset, I am trying to predict which fare product is picked by the customer, in which choice is the dependent variable Columns 6:14 are prices of each option, and the last colum...
Suppose that the random variable $Y$ follows a mixture of two exponential distributions, that is \begin{equation} f_Y(y) = \sum_{i=1}^{2}\pi_i f(y| \lambda_i) \end{equation} where $\pi$ stands for mixing weights with the property that $\sum_{i=1}^{2}\pi_i = 1$, and that $f(y|\lambda_i) = \lambda_i e^{-\lambda_i y}$, fo...
Suppose data is generated by $Y_i=\beta_0+\beta_1X_i+U_i$ satisfying $E(U_i|X_i)=0$ and $E(U_i^2|X_i)=\sigma^2$. Suppose I have a random sample $\{Y_i,X_i\}_{i=1}^{n}$, and obtained OLS estimates $\widehat{\beta}_0$ and $\widehat{\beta}_1$. Suppose conditions for CLT of the OLS estimates are satisfied. What's the close...
Im reading and trying to understand the following paper on "Disentangled State Space Representations" (https://arxiv.org/pdf/1906.03255.pdf). In the derivation of the KL-loss term the authors used the symbol . Here is a part of the equation (see paper p. 11): I have never seen the use of in such a context and wonder...
I firstly generate data from a bivariate normal distribution with mean (0,0) and var cov (2, 0.5; 0.5, 2). Here is my code for it: n <- 10000 set.seed(123) #for reproducible results dat <- MASS::mvrnorm(n=n, mu=c(0, 0), Sigma= matrix(c(2, 0.5, 0.5, 2), byrow=T, ncol=2) ) Now what I want...
I have performed an Non-metric multidimensional scaling (NMDS) to see if my two stations were different in terms of plankton abundances, using the metaMDS function in r (before I have performed a sqrt transformation). I have done 4 NMDS, one for each season (winter, spring, summer and autumn). I put one of them, just f...
In the k-prototypes clustering algorithm, the distance function consists of two dissimilarity components - one for the numerical elements of the observations, and one for their categorical elements. In pseudo-mathematical terms, we have: $$d(x, y) = d_1(x_{num}, y_{num}) + \gamma d_2(x_{cat}, y_{cat})$$ where $\gamma >...
I am performing a supervised classification with RF, SVM, and CART algorithms. I have over 2000 training points in an area of 9,995 km². For CART, I have obtained a 'Validation overall accuracy = 1' when I set minLeafPopulation as default value 1. (If I set minLeafPopulation = 2, it decreases the accuracy to 0.94) I r...
In a simulation model that must reflect the process of a real environment (hospital, airport etc.) how can one choose the best distribution for the various stochastic processes within the model when only having 25-35 datapoints? Typically, a triangular distribution is used when empirical data is scarce, however, when t...
I have a report with both Standard error and Relative std. error for a same metric for two years. What is the difference between Standard error and Relative std. error in this example? How should I explain these two terms for general audience? Date Metric A (%) Standard error (%) Relative std. error (%) 16...
I'm using coxph in combination with survfit and I observed that, e.g., when I use the following syntax coxph(Surv(time, event) ~ 1, data = df) coxph(Surv(time, event) ~ position, data = df) coxph(Surv(time, event) ~ position + country, data = df) that the survival functions move more and more leftwards as more and m...
I want to determine the average expected lifetime of devices of which I have data. This data comprises ~4500 generators of which ~3800 died and the others are still alive. Furthermore, I have information of their production date and end of life, thus giving me a period of successful operation. Or, respectively, the tim...
This post is kind of related to these two posts here and here I learnt that model expected value (average prediction) is nothing but performance of the model when all input features are absent. But I see that this expected value is calculated from a model with input features (whose values are not zero). But it is inter...
I have just finished running a plant decomposition experiment measuring the decomposition of pine needles across climate and lithological types. We have mass loss, plant chemistry data (c, n, labile carbon, cellulose, hemicellulose, and lignin), and CDI (climate decomposition index). I will be fitting the three pooled...
The below is quoted from this post: When is logistic regression solved in closed form? "In OLS, you have $$ \sum_i (y_i - x_i' \beta)^2 \to \min_\beta, $$ which has the first order conditions $$ -2 \sum_i (y_i - x_i'\beta) x_i = 0 $$" I'm not sure what this syntax and terminology means. I think the right arrow means th...
A question on how to deal with inverse probability of treatment weighted-Cox regression analysis. Basically, I am evaluating how to use IPTW in the context of survival (and specifically, Cox regression) analysis in observational study, in which the evaluation of exposure/treatment can be biased by imbalance in several ...
I am working on a problem of generating synthetic data (algorithmically by blender, not using GANs) to aid the training of some CNN for a classification ask. Ideally, I want to generate an algorithm that generates synthetic samples as close to real samples as possible. But it happens that it is very hard to design this...
In the context of a multiple linear regression, is applying a partial F-test on the significance of a single parameter equivalent to applying a student test on this parameter?
I have a small database of voltage information from multiple batteries (of the same type), with each measurement being a tuple of (battery id, battery voltage (as a percent) and measurement time). I can also view this as distinct time series for each battery. My goal is to build a model of the battery voltage in order ...
I have a retrospective chart review that reported beta coefficients for both its univariate and multivariate regression analysis. However, there is no complete individual patient data. I am wondering whether there is a way to build a nomogram directly out from beta coefficients. Thank you all in advance!
We are taking anonymised demographic data of n people with a rare medical condition, and trying to train a binary classifier (currently using xgboost) to reach more similar people with let's say a public service announcement. To train we have been taking a random sample of n non-patients (with their demo data). The cla...
Suppose there are two samples $X_1\dots X_n$, $Y_1\dots Y_m$ of binary variables $X\sim Bern(p_1)$ and $Y\sim Bern(p_2)$. Is there any way to test the following hypothesis by the exact test? $$H_0: p_1-p_2 = p; $$ $$H_1: p_1-p_2 \not= p,$$ where $p \not = 0$. I do not want to use t-test since in my design $p_1$ and $p_...
I'm analyzing results from a large workforce survey, with approximately 110,000 responses to each question. We are interested in how certain demographic variables impact employees' opinions, so we construct inverse probability weights to adjust for non-response and then run weighted linear regression on each question. ...
I have two variables: Variable A (dichotomous): positive/negative Variable B (ordinal, three level): disease/ maybe disease / no disease. I want to test the association between these two variable, a chi-square test would treat variable B as nominal. Which statistical test is more appropriate? Thanks a lot!
I'm a bit confused as the output of my model in R. I have built a generalised estimating equation glm model aiming to see the effect of time (here coded as timestrat) on a variable called new1804. I have controlled for a range of other variables. mf04 <- formula(new1804 ~ timestrat + urban + marital + ses + timei...
I plan to capture data to predict energy consumption in a food processing plant. I want to capture production details such as how much each category of food is produced, what is the machine's output, any downtime details etc. What frequency of data is required for this analysis? What factors should be taken into consid...
This table is mentioned in What algorithms need feature scaling, beside from SVM? It says that linear regression, logistic regression, and naive bayes are parametric, while KNN, decision trees, random forests, adaboost, and neural networks are not. What does parametric mean here? Don't all these models use parameters ...
For this project, I have a list of items that were calibrated under the 3PL model using the mirt package. I had a pilot study run to help estimate these items. Now, using a different group of people, I want to figure out how to update someone's ability (assuming it's zero) when they answer a calibrated item (right or w...
Context: I am trying to find the best predictive model for a dataset with 1000 observations. The problem is I am not sure what the best training and test size should be. So what I did was that I ran a loop to vary the training size from 1 to 999 (and the rest as test set, size from 999 to 1) for my predictive models a...
I'm new in statistics , and right now I'm trying to do an hypothesis testing , so to know which hypothesis is accepted (H0 or H1) , I used to see or study p-value between (0.01-0.99) , but when I tried to do the test right now I got p-value = 5.84e-10 (by using shapiro.test() in R), while the significant level is just ...
In essence how do we know a low value is good enough? Given the values could be 0 to infinity. Is a value X 'good' for any two distributions? (a little like R2 score is 'unites') Or could it be like MSE where the actual number has meaning relevant only to the data, e.g. a value of 0.1 be 'good' for two distributions, b...
In a comedy TV programme, four men are sitting at the bar. The barman tells them: "Did you know that, statistically, one out of four men is having an affair?". The first man replies "Not me, I love my wife."; the second man "Me neither, I would never do this to her!"; and the third man "Same here, I've only been marrie...
I'm having difficulty wrapping my head around my results from a logistic regression model I ran. In a nutshell, I'm trying to determine if singing behavior in a songbird is influenced by environmental factors. My model is as follows: Singing (yes or no) = B0 + B1 x Photoperiod + B2 x Rain + B3 x Wind + B4 x Photo...
We have run several Cox proportional hazards models. One of the outcomes is a beneficial thing (discharge from hospital), while the others are all negative outcomes (these are not competing outcomes but separate datasets and tests). My colleagues and I worry that readers will misinterpret our results since the outcome ...
I am currently making PCoA plots on Presence/Absence community data. My rows are populated with samples and my column headings are different taxa that were detected. However, since the experiment is a degradation experiment, some of the samples have rows filled with zeros (absences). The only way the distance matrix ca...
I tried to use VAE and DAE to train with MNIST dataset and see their performance. It turns out VAE has a greater loss but generates better sample images. Why does it happen?
I need some advice from statistics experts. I often encounter in biomedical research field that people do one statistics test upon another on the same dataset. Let's say we have two groups of patients, some 'sick' and the other 'healthy control', and we are 'exploring' for explanations and therefore have performed stat...
I noticed that the matrix of coefficients learned by a logistic regression model (which can be retrieved with the .coef_ attribute) is $(c, n)$ where $n$ is the number of features (i.e. the number of columns in the X that you passed to the .fit function), and $c$ is the number classes (i.e. the number of unique values ...
I'm trying to fit a curve to my data (shown below), but I'm not sure of the best way to do it. I tried an exponential function following this tutorial, but it didn't fit the data at all (just a vertical line), and now a square root function ( y~x+sqrt(x) ), which seems to fit the data well but curves upwards near the y...
I have repeated measurements from a usability study on 2 different interfaces (n=23). Since the difference between the measurements seems to be normally distributed I used paired samples t-test to compare the interfaces, however there's only a weak correlation between the two measurements (based on the Pearson correlat...
Time-series #1 and #2 are daily reported disease cases in the Central vs. Southern regions, respectively. The p-values from the Augmented Dickey-Fuller test is less than 5% for #1 and more than 5% for #2. So that means Time-series #1 is non-stationary while Time-series #2 is stationary. Visually examining the two grap...
In Lehmann-Casella (Theory of Point Estimation) they state without proof that if $T \sim Bin(n,p)$, then $g(p)$ is estimable only if it is a polynomial in $p$ of degree $\leq n$. How does one go about proving this? Here is their somewhat justification: In fact, it follows from Equation (1.2) that a function $g(p)$ can...
Data and objective I have count data from two groups, A and B, from across multiple samples. I want to estimate the average ratio of A to B across all samples, along with a confidence interval. Issues I'm not sure which formula to use. I'm using the normal approximation, but the confidence interval overlaps zero, but t...
I am trying to build a SEM in lavaan to determine the stability of a personality trait across three measurement time points. As per the theory the stability of a trait is given by the standardized effect of the trait when measured before. (for example, the standardized effect from T1 to T2 or from T2 to T3). In doing s...
I apologize for the noticeably contrived term "t-ANOVA". It is not really a Student's t-test at least because I am not necessarily assuming a t distribution, but it was a source of motivation. Nor is it an ANOVA test, although that was a source of motivation as well. I am open to suggestions for name revision in the co...
I'm visualizing results from a negative binomial regression. I don't want to the graph of Y vs X to look exponential, I want it to look linear. In SPSS, the value provided for the linear predictor is equal the log of model-predicted values of the response variable. Would it make sense to plot the linear predictor on th...
In a software application, I have access to the order statistics (without any extra computational cost) of a collection of $N$ samples (where $N$ can vary and is often quite large, usually on the order of $10^4$). I would like to quickly determine a rough and approximate degree of normality for the samples, without inc...
The methods of estimation like GLS or GEE are especially helpful, when there are clusters of data, like repeated observations, many per cluster=subject. Such observations are naturally correlated in some way. The correlations my be similar over time (compound symmetry), may decrease over time (AR1), or may be of any ki...
I have a table of $k=(0,1,2,3,4,5,6)$ and $number=(40544,8082,1205,145,20,3,1)$ I need to fit data by a Compound Poisson-Gamma distribution and then make a discretization and compare results with observations. My attemp is: The compound Poisson-Gamma distribution can be realized as Negative Binomial distibution: librar...
I'm to produce rolling forecasts with an ARIMA-GARCH model using a moving window size of 1000. Given that structural changes in the series might take place at some point in the forecast horizon, is there any conventional method for choosing the lags of the ARIMA(p,q)-model when using a rolling window? I'm considering a...
I am working on binary classification using random forest model with dataset shape of 977, 6. Class proportion is 77:23 I built the ML model using my input data and obtained the probabilities of the outcome using predict_proba function from the scikit-learn package. However, I want to know whether we can get the confid...
I have just started studying Linear Regression using Neural Network and I believe this is a naive question. I have a neural network for a Linear Regression Model with 3 independent variables. I have 1 hidden layer with 3 neurons with linear activations for each neuron. The last neuron is just another linear activation...
In the scaled dot product attention they multiply a "softmaxed" matrix (which has shape (sequence_length, sequence_length) I think?) to the V matrix as shown What does the second purple matmul actually scale explained in an algebra fashion? Also if I have a matrix a of shape (home_count, furniture_type_count) to store...
Tasked with: Given EPS is distributed with $\mu = 6$ and $\sigma = 2$, what is the probability that EPS will be $9.70 or more? Answer, convert to z-score and input into $F()$: $$ \frac{9.70-6}{2} = 1.85$$ A z-table gives us $F(1.85) = .9678$ but this is $P(EPS\le9.70)$, we want $P(EPS\gt9.70)$, which is $1-P(EPS\gt9....
I understand the concept of the NULL hypothesis and how to reject it, however I would like to be able to explain why this is a better approach than trying to prove the alternative hypothesis true. What would it entail do to "prove" the alternative hypothesis true? I put "prove" in quotations to exempliy that we cannot ...
Suppose I have a linear model $y_i=\mathbf{x}_i\boldsymbol{\beta}+\mathbf{z}_i\boldsymbol{\gamma}+\epsilon_i$, where $\boldsymbol{\gamma}$ is subject to elastic net regularization. Now I have a nested linear regression $y_i=\mathbf{x}_i\boldsymbol{\beta}+\epsilon_i$. Now I want to know whether $\mathbf{z}_i$ contribute...
I am working on random forest classifiation with a dataset size of 977 records and 6 features. However, my class is imbalanced and proportion is 77:23 I was reading about calibration of models (binary classification) to improve/calibrate the predicted probabilities of actually fitted model (RF in this case). However, I...
My data is split into 80% train, 10% validation and 10% test. My dataset has three versions: i) Base dataset, ii) SMOTE adjusted version 1 and iii) SMOTE Adjusted version 2. I have run a 4 different model architectures against each of these datasets so effectively I have 12 models. I ran a GridSearchCV on all the model...
Following up from this question, I have managed to derive the following posterior distributions $$ \lambda_z | \boldsymbol{y}, \Theta^{(-\lambda_z)} \sim Gamma(a + \sum_{i=1}^{n_z} y_{ij}, \quad a + n_z \mu)$$ $$ \mu | \boldsymbol{y}, \Theta^{(-\mu)} \sim Gamma(k + \sum_{z=1}^{m} \sum_{i=1}^{n_z} y_{ij}, \quad j +\sum_...
I am practice some exercises. Here it goes. "Assume we fit the simple model \begin{equation} \hskip 5cmy=X_1\beta_1+\epsilon \hskip 5cm (1) \end{equation} however the true model is \begin{equation} \hskip 5cmy=X_1\beta_1+X_2\beta_2+\epsilon \hskip 5cm (2) \end{equation} assume for both models above that ...
In an experiment, participants rated each of several musical stimuli on 5 aspects (ratings A to E), across ~3,000 trials. Stimuli were performed (by a previous set of subjects) either solo or duo (ensemble size), and were learned under 3 different learning conditions. Thus, the ratings, ensemble size and the learning c...
Page 28: A note on notation: Random variables will always be denoted with uppercase letters and the realized values of the variable (or its range) will be denoted by the corresponding lowercase letters. Thus, the random variable X can take the value x. Page 139: For example, consider an experiment designed to gain i...
I have a large data set and want to regress variable X on variables A, B, C, D, and E and also include fixed effect variables Y, Z. I want to use the natural log of the variable C as well (plus one). How can I go about this? My intuition was to use felm install.packages("lfe") library(lfe) regress <- felm(formula= X ~ ...
Say we are fitting a parametric model $y(x, \theta)$ to some data (e.g. logistic regression). Given a prior distribution over the model parameters $\theta$ and observed data $x$, we arrive at a posterior distribution for each of the parameters as well as predictive posterior distribution at any new point. Now suppose t...
Is there a methodology or R tool that allows you to best attribute a p and q value for a Beta distribution? I am currently building a simulation that involves stochastic processes, and from the little empirical data I was able to obtain (30 data points) I developed a Cullen and Frey graph with bootstrapping to understa...
I'm trying to determine whether or not exposure to extreme temperatures after hospital discharge affects the chance that a surgical patient will be readmitted. An extreme heat exposure is defined as a post-discharge day during which the temperature in that patient's zip code was above the 95th percentile for that zip c...
I am testing stationarity in data and I got warning in the Dickey-Fuller test about p-values which is following: p-value smaller than printed p-value. First I plot the data in the graph: Then I applied Dickey-Fuller test and the result is following: Augmented Dickey-Fuller Test data: yield_to_maturity Dickey-Ful...
I have some experimental measurements which come in sets $S_i$. Each $S_i$ contains some floating point numbers $s_{ij}$. I think the $S_i$ form clusters with similar contents. How do I assign the $S_i$ to clusters and estimate the number of clusters $n$? Some details: I do not know what distribution $s_{ij}$ is sa...
I applied two regression models (ordinary least square (OLS) and linear absolute regression) to the same dataset, where this dataset is split into train and test sets. Two performance measures are used to check the accuracy of linear regression models: MSE stands for mean square error. MAD stands for mean absolute devi...
I am generating an AR(3) model with coefficients $(\phi_1, \phi_2, \phi_3) = (0.35, 0.5, 0.08)$. Then I use the statsmodels module from Python and its Yule-Walker implementation to get back the coefficients. I find two problems: The estimation is not as accurate as I want When using the Sum of Square Errors formula (S...
I have analyzed the following Data set in R using hierarchical analysis, and plotted the results. Ive been asked to find and highlight the number of clusters present, but how exactly do you determine this? It seems it all depends where you cut the plot at? For example, with saying there are 5 clusters, you get somethin...
I have a panel data set with `N = 17 Spanish regions and T = 32 years. I performed some models like this one with the plm() function and the within estimator for individual fixed effects: mcorr <- plm(corr ~ preelec + elec + postelec + ideo + crec_pib + pob + pob16 + pob64, data = datos, ...
I already referred this post.Don't mark this as duplicate. I am working on a binary classification problem using algos like random forest, extra trees and logistic regression. dataset shape is 977, 6. class ratio is 77:23 In terms of our metric of interest f1, random forest seemed to do better followed by extra trees a...
I think that this post is very similar to what I'm trying to do Fit a sinusoidal term to data y <- c(7,4,4,7,4,11,41,2,9,27,36,23,43,19,12,30,39,26,55,14,13,10,9,12) t <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) As shown in the Figure there is a peak every 6 hours at 6, 12 and 18 ssp <- spectr...
Let's say you have a lmer model that test the drug effect of a set of rats with a set of rats (Control): lme1 <- lmer(lVolume ~ Days*Drug + (Days|Drug)) where Days is the times of the drug applied, lVolume the log(Volume), and Drug a 2-factor level variable (Control and DrugA). Dat0 <- list( list("Rat1", Volume=c(...
Background Edit: I realize my use of the word "hypothesis" is confusing, I do not mean specifically a null hypothesis. I mean a proposition that something is true. From my limited understanding, Bayesian probabilities represent beliefs. A scientist may therefore assign a belief/probability to the statement that a hypot...
It is unclear to me how the cutpoints are determined after we selected the number of cutpoints for each covariate. What is the default "sturges" option? mNN <- MatchIt::matchit(A ~ X1 + X2, data = d, method="cem", cutpoints = list(X1=6, X2=6))
I want to determine the interaction between two of my continuous (scale) independent variables on the one dependent variable, which is dichotomous (cases are coded as 0 and 1). I was going to use a two-way ANOVA, but you need categorical or continuous independent variables as well as a continuous dependent. Is there an...
My question is more theoretical, less code related. I am trying to enter some moderators to rma.mv() , my moderators are: 1 factor with 4 levels. Call it "F", with levels F1, F2, F3, F4. 3 continuous variables. Call them "C", as C1, C2, C3. My main focus is the factor variable, I am intending to use the continuous on...
I was told, that the GLS is a special case of the GEE, if the conditional distribution is gaussian and the link is identity. How is that possible? GLS is a two (or more - IWLS) stage procedure. It estimates both the covariance structure in the first place and then uses it to alter the coefficient estimates. In GEE onl...
I have run into some difficulties figuring out which statistical test is best to use in the following scenario: Consider a typical line y = mx + b For a given domain on a plane, say 0 to 1, I have a set of data points that make up a line with some small slope m, where 0 < m < 1. I would like to figure out the best stat...
I have a huge training data of size 5.5 GBs with over 55m rows. Because iterating over the whole dataset again and again was too slow, I used a 1% sample of this whole data to select the best estimator and its hyperparameters. LightGBM is my final estimator with certain hyperparameters. And I used early stopping to fin...