instruction stringlengths 9 38.7k |
|---|
If we have a multivariate Gaussian $q(\mathbf{a}) \sim \mathcal{N}(\mathbf{\mu}, \Sigma) $ and an empirical distribution $P(\mathbf{a} ) = \sum_{k=1}^{K} p_k \ \delta(\mathbf{a} - \mathbf{a_k})$ and I want to calculate the KL divergence $D_{KL}(p || q)$, is this possible? It feels like maybe the following steps are val... |
I´m working on a marine species dataset with R. I would like to compare the biomass and abundance between different sites but I´m not sure how to deal with the large number of outliers. I am aware that my outliers are not "real outliers": it´s more that my data are not well described by a normal distribution. Therefore... |
I am quite new to causal inference and want to try some methods for treatment effect estimation. For this purpose, I created a the following data generation process in Python:
import numpy as np
n = 10000
X3 = np.random.randint(1,4, n)
X2 = np.random.randint(1,11, n)
X1 = 5 * X2 + 3 * X3 + np.random.randint(-1,3, n)
... |
I am conducting a project in which we are studying a specific biomarker for asthma. This biomarker normally appears in 63% of the population. I would like to know what would be the sample size to analyse to obtain 63% of patients with this biomarker.
Thank you in advance.
|
Suppose we toss an unfair coin until we get heads.
For every toss we can change the probability of success according to some function F(trial_idx, *function_parameters).
We repeat this process and each time note at which try we succeeded.
What should $F$ look like to obtain some normal distribution N(μ, σ^2) for succes... |
Is sample skewness a consistent estimator of (moment coefficient) skewness?
I have ran some experiments and it seems this is not the case, but I cannot find any definite answer online.
Here is an example:
|
I have a question regarding transformation of data. I have handled some data with both negative and positive elements by using the transformation:
log(Y+1-min(Y))
which is all good. The problem is though, that I am not sure when I should transform the data back.
I am using the data in a decomposition analysis using PLS... |
I am currently working on a question which seems to have an obvious answer, but it it seems just impossible for me to find a stringent proof of this relation (if it is true).
Imagine the following scenario:
You are asked to bet on the chance of your favorite soccer team winning their next game. Before you make your bet... |
Let us roll a six-sided dice n times. We suppose that the tosses are independent and random. Let $X_i$ be a random variable that takes $0$ if the number obtained belongs to {1, 2} or $1$ if the result belongs to {3, 4}, or $2$ if the number belongs to {5, 6}.
The questions is which probability distribution is this for ... |
I've wondered this for a long time. Let's say that I'm designing an experiment e.g. to measure human reaction time to images in which the contrast is varied.
If I can afford 1000 trials I could make one of the following:
1 condition with 1000 trials.
10 conditions each with 100 trials.
20 conditions each with 50 trial... |
I have been working on a problem whose goal is to find the most accurate coefficient (from a physical point of view) that expresses the relationship between a feature and an output variable. The model is linear, has multiple features, and I am using the normal equation to solve this.
My concern here is that some featur... |
I have extracted the Pearson correlation Coefficients between the labels and features. Can I multiply the final correlation score for each score by 10 to make it higher to investigate it with machine learning?
|
I'm trying to show that, $(-X)_p = -X_{(1-p)}$, that is, the $p$ quantile of $-X$ is equal to the $1-p$ quantile of $X$ after multiplying with $-1$. The results holds when considering quantiles of a continuous distribution.
I'm assuming Type 6 quantiles (https://en.wikipedia.org/wiki/Quantile#Estimating_quantiles_from_... |
I have fitted a Bayesian multilevel model. Example:
$$
Y \sim Normal(\mu, \sigma)\\
\mu = \alpha + \beta * time + z_{subject}\\
z_{subject} \sim Normal(\bar{z}, \sigma_z)
$$
I have fitted this to some data to get a posterior distribution for $\sigma, \alpha, \beta, \bar{z}$ and $\sigma_z$
I now observe a new Y at time=... |
I have a dataset consisting of log files from a smartphone application. Currently, it creates a row each time a user clicks on something, i.e. a user clicks on the homepage, and a new row is created containing the longitude and latitude of the device as well as for how long the page has been open.
The rows also contain... |
I am modeling data with a gamma response. Two continuous variables in my data set are nonlinear and have a large number of nulls. One option I see is to bin/discretize the variables where the nulls would be in their own bin and fit a glm. I am not a proponent of binning continuous data due to the loss of information. I... |
I'm reading this paper recently. I'm confused about the "sample a distribution of trajectories" repeatedly mentioned in the article. I don't understand what this means. What is the sample often mentioned in the article and how to operate it?
Does anyone understand that? Thanks!
|
If we sample $x_i$'s from $X\sim N(0,1)$, and $y_i$'s from $Y\sim N(0,1)$ (the distributions are set to be normal to make things concrete but they can be any distribution), then is it true that
$$\frac{1}{n}\sum_{i=1}^nx_iy_i\rightarrow\mathbb{E}[XY],$$
as $n\rightarrow\infty$ (e.g., by the weak law of large numbers, w... |
Background: I'm in fairly over my head here, working on a project for class where we had to choose our own publicly available dataset to analyse and I chose one with a zero-inflated continuous response variable in the form of infection load.
My explanatory variable is categorical with 5 categories. I started by square ... |
I am trying to fit a regression model in which the dependent variable is a continuous positive variable (costs, no zero costs). In literature I often read that considering the lack of negative values, a ordinary least square regression is not appropriate. Generalized linear models with for example a Gamma distribution ... |
I understand the important distinction between explanatory vs. predictive models. However, I often read that simulations is an important tool in risk modelling and risk analysis. How are simulations used in explanatory modelling and in predictive modelling?
I imagine that with predictive models, you may want to obtain ... |
Suppose I have $q$ urns each of which hold up to $n$ distinguishable balls, but only $1$ of each type of ball (there being $n$ types of balls too). I would like to make any particular configuration of the number of balls in the urns equally likely, with each urn having at least 1 ball. Importantly, I am trying to make ... |
As we know, after applying a linear regression model to a continuous data set we carry out a significance test to each parameter βi associated with the predictor variable xi to check whether the latter contributes to the explanation of the dependent variable yi.
H0:βi=0,
H1:βi≠0.
Can we apply the same procedure to a li... |
I subscribe to a sample of real-time data from a vendor. Once per second, the vendor delivers (a) a random sample of records for the given second, and (b) the total number of records the vendor processed during that second, from which my sample was drawn. So for a given second, the vendor might deliver (a) 100 records,... |
I am trying to use ABC for a physical black box phenomenon. Both the input space and output space are 3D, and there is a proper distance function for the performance space (CIEL*A*B* ΔE). It is not possible to simulate this black box, therefore the samples need to be physically measured and evaluated. In addition, this... |
I have 122 features for a regression problem. Here are some stats on a random forest model using RMSE:
With no scaling or dimensionality reduction:
Train RMSE: 0.0
Test RMSE: 0.0
CV RMSE: 0.0
With scaling and dimensionality reduction to 2 components:
Train RMSE: 0.03
Test RMSE: 0.01
CV RMSE: 0.03
How can I tell if the ... |
I have been playing with some bitcoin data that i download from binance API the data correspond to 1min klines there is 1 million of samples that start from 01/08/2020 to 01/02/2022
if i make a frecuency table with 1000 intervals and make a plot of the frecuencies of volume and another plot of the frecuencies of diff... |
I would like to train a NN in order to approximate an unknown function $y = f(x_1,x_2)$. I have a lot of measurements $y = [y_1,\dots,y_K]$ (with K that could be in the range of 10-100 thousands) which come out from either a simulation or a measurement of a system. I've built a feed-forward NN for solving this problem ... |
I'm trying to separate different groups based on values from width and length using k-means and hierarchical clustering. My question relates to the possibility of using the area — measured as width * length — as another variable in the clustering. Does it make any sense or since this new variable came from the other tw... |
Apologies if this is a really simple question but I cannot work it out.
I am trying to find out if year and/or location influence the amount of insects caught. Insects are measured in grams per 10km2. Year is a factor with 3 levels, location with 6.
The insect data is not normally distributed. According to the levene t... |
Say I have a random variable $X\sim \mathcal{N}(0,1)$. Which transformation do I need to apply to $X$ to get a zero-censored normal distribution?
|
I'm looking for a way to fit a graded response model where the thresholds are symmetrically located around zero. The mirt.model command allows you to add an equality constrain, but I haven't found a way to implement the constraint d1 = -d4 and d2 = -d3.
Do you know if this is possible with the mirt package?
|
If $X_1,\dots, X_n$ iid samples from CDF $F(x)$ and assume that $F$ is first order differentiable at $\xi_p$ with $f(\xi_p)>0$. Let $F_n$ be the empirical CDF of $F(x)$. Then $\hat{\xi}_p=F^{-1}_n(p)$ is the sample p-th quantile. Ghosh (1971) obtained a weaker version of Bahadur’s (1966) representation:
$$
\hat{\xi}_p... |
Let $X$ be a random variable with unknown CDF $F_X$ and PDF $f_X$. What is the notation for a percentile range $[0,p]$ on a sample of $X$ that allows discussing sample statistics over that range? My attempt:
$$
\begin{aligned}
s &= \{x\ |\ x \in X,\ x < F_X^{-1}(p)\} \\
\bar{s} &= \text{mean of $s$} \\
\mu_s &= \text{m... |
So I've a problem I'm trying to solve. I'm more of a coder than a stats guy so this may be very basic!
Movie A rated 5.5 with 10 ratings(5,6,5,6,5,6,5,6,5,6), movie B rated 5.44 with 9 ratings (4,5,6,7,4,5,6,7,5), movie C rated 5.33 with 9 ratings (2,3,8,9,2,3,8,9,4)
What is the probability that C is rated higher than ... |
This is a MLM analysis of a physiological variable (so big dataset) with a time x condition fixed effect, where condition has 3 levels. Model code is:
m.EDA1 = lmer(
EDA_cs ~ Time_sd * Condition +
(1 + Time_sd | Subject) +
(1 + Time_sd | Video),
data = data,
control = lmerControl(
optimizer = "bobyqa"... |
I have a continuous variable, call it A, with missing data. In my model, I have created a dummy variable, call it B, where 1 indicates missing in A and 0 otherwise. I impute missing values in A with the mean and include both variables A and B in the model. The test set also has missing values for A. My question: does i... |
To compare my method with others I'm trying to compute its AUC but I got a bit confused on how to do this for my case. My method uses a model that classifies an image as class A or B, after that if the image was classified as positive or as A, it goes to a segmentation model that makes a mask showing where class A is l... |
I understand kernels allow us to linearly separate non-linearly separable data in a higher-dimensional space.
Given a feature vector $\bar x = [x1,x2,..xn]^T$, we can apply the transformation $\phi(\bar x)$, and apply the usual regression $ y = \bar w^T\phi(\bar x)$.
However, I do not understand the notation in the fol... |
So, i applied mann whitney U test to find out the difference in salary between two groups( eg- gender - male and female). There is indeed a statistical difference between the groups.
Result of Mann Whitney U test:
WilcoxonMannWhitneyResult(alternative='two.sided', statistic=-13.689596321778781, HodgesLehmann=-8805178.0... |
If using the default k in a smooth, e.g.
gam(y ~ s(age), data=dat, family=binomial)
how can I see which k was chosen ?
thanks !
|
I am reading Robert and Casella (2004) on Markov Chain Monte Carlo methods and, in particular, Section 6.7. This contains the ergodic theorem, which is stated as follows, where $S_n(f)$ denotes a partial average under function $f$:
If $(X_n)$ has a $\sigma$-finite invariant measure $\pi$, the following two statements ... |
I have an LSTM model as follow:
The problem is that:
It can work on the X_test.
However, when I choose a part of X_test and want to predict the next N ahead point, it can not work.
Finally, I want to plot a figure like the following. Could you please help me with that?
Could you help me with that?
I also provide the f... |
I have conducted a questionnaire without much knowing about Likert. Now I realized that I have both Likert-scale data and Likert-type questions. I think I can look at their descriptive statistics through different methods: mean and standard deviation for Likert-scale data and median and frequency for Likert-type.
I am ... |
This assumption should rule out the concern of selection bias, right? For example, I am looking at the effect of increasing police presence on crimes. The government decided to put more police in certain areas. Of course, the police will be placed into cities with more violence. If 2 cities have similar trend in crime ... |
I'm new to statistics.
I created a data set of around 10000 observations and wanted to examine the relation between a variable A with continuous values between 0 and 10 to another B which can assume continuous values between 0 to 1.
However, I noticed that my distribution of the independent variable is heavily left ske... |
I am trying to find the strength of signal over a background using a continuous variable, whose distributions are known for the expected signal, the expected background, and the observed data, along with corresponding uncertainties. Now if I understand correctly, due to a large number of observations, the distribution ... |
I am trying to tackle a problem that involves binary classification. However, my data is multi-level or hierarchical in its structure. This example illustrates its structure:
Time Group Response F1 F2 F3 F4
1 1 a 0 0.89 0.01 10 2
2 2 a 1 0.82 0.58 21 4
3 3 a 1 0.34 0.39... |
Five people each took a 100 question yes/no question test. I have their individual accuracy scores and was planning to report their average.
However, I was informed that "You cannot take an average of percentages derived from categorical variables" and I am trying to understand the full scope of that statement as I've ... |
I'm doing a project where I'm tasked with predicting "growth coefficents" (classes representing sales at a year from now as a percentage of current sales) for sales of different products, given a time series of the product sales during the last month. What I'm not understanding is what the usage is of getting a class t... |
I am a beginner to ML and working on some traditional classification problems as of now.
I see that some of the results/decisions made by ML are a result of trial and error by the data scientists. Meaning, there is no proper logic or theory/guideline to the way how an ML works. So, the behavior of model (if not most) a... |
I am studying econometrics and bumped into such thing as "fixed but random" variables. As far as I understood, these are the observations that will become constant values in the future, when they are observed. But until they are not, so while we are "theorising", they can be seen as random variables, e.g., they can be ... |
When reading through the vegan::betadisper() function help document, I noticed that it is suggested that:
"However, better measures of distance than the Euclidean distance are available for ecological data. These can be accommodated by reducing the distances produced using any dissimilarity coefficient to principal coo... |
My data includes the following:
Y which is a physiological measure
Age continuous
Gender factor, Male or Female
Timepoint One for each year of study visit: 1,2,3,4
subject each unique subject
Model aim:
To identify longitudinal changes of Y across Timepoints, for each subject between Gender
I am assuming a random s... |
I've been handed a bunch of historical data on performance ratings of individuals in a number of organizations, and asked to identify any instances where there appear to be "abnormalities" in the distribution of ratings. This is not to immediately throw a "bias flag" but to identify cases where more scrutiny may be ca... |
I found this equation in wikipedia (https://en.wikipedia.org/wiki/Variance#Sum_of_correlated_variables), and I was wondering if someone had a proof for it? I have checked the textbook in the references but cannot find this formulation
$$
\large Var(\Sigma \mathcal{X}) = \mathbb{E}(\mathcal{N}) Var(\mathcal{X}) + Var(\m... |
Not sure exactly how to word this, but I'm stuck on a current question about poisson distributions.
So far, the questions have gone along the lines of "What is the probability that x SUCCESSES will occur in a two-day period?" and "What is the probability that at least x SUCCESSES will occur in a two-day period? I've fo... |
I am involved into a research project and over there I have a small dataset with 35 records of data. As the size of dataset is very small, there is a risk that our machine-learning model become overfit and therefore, I need to have more data.
I am wondering, if I can reproduce these data, given that I guess the distrib... |
Let $S = \frac{X_1 + \cdots + X_n}{n}$ where the $X_i$ are IID Bernoulli distributed with mean $p$, then $E[S] = p$ and $Var(S) = \frac{p(1-p)}{n}$.
Now consider the slightly more complex setup where $S'=\frac{1}{nk}(\sum_{1 \leq i \leq k} \sum_{1\leq j \leq n} X_{ij})$ where $\{X_{ij} | 1 \leq j \leq n \}$ are IID Ber... |
While trying to understand deeper about Central Limit Theorem for proportions, I learned CLT for proportions is based on the fact that binomial distributions can be approximated by normal distributions when some requirements are met.
For the approximation to work this requirement has to be met -
$np \ge 5$ and $n(1-p)... |
I am learning multiple testing and I am curious about why it matters?
I understand the mathematics behind the multiple testing problems, for example, I understand things like $\text{FWER} \le m \alpha$, where $\text{FWER}$ refers to family-wise error rates, $m$ refers to hypotheses numbers, and $\alpha$ refers to signi... |
I am working on a binary classification with an imbalanced dataset of 977 records (77:23 class ratio). My label 1 (POS not met) is the minority class.
Currently without any over/under sampling techniques (as it is not recommended), I get the below performance (using `class_weight parameter though)
And my roc_auc score... |
I am currently doing research on the moderation effect of the aim on factors (independent variables) that influence technology acceptance (dependent variables). My research is as follows:
Group A had to answer questions about Aim A
Group B had to answer questions about Aim B
Additional information:
The questions the... |
I have 10 variables for which I do one-step ahead forecast using a VAR model. The model was trained on historical data for the variables.
Almost all the variables receive new data points daily, so each time a new value comes in for any variable I make a new forecast and at the moment I do not use predictions as lags, o... |
I have a dataset which has 200 dimensions after pre-processing. I read multiple times that 100 is the recommended number of trees for the Isolation Forest. Since each tree chooses one feature randomly, all the features of my dataset wouldn't be used by the Isolation Forest which means that the not used dimension could ... |
Update:
Added more meaningful example data
Setting:
In my study, each of three randomly chosen readers (A, B,C) applies three different qualitative scores (score1, score2, score3, each an ordinal scale) to the same set of 95 cases. score1 for example is a score how the reader rates the severity of a case (1 = not sever... |
Let's suppose I have two treatments, A and B, that I use on randomly sampled individuals of a population. I want to assess the relation between the treatment and the probability of an event happening to an individual.
I treat 95 individuals with A, and the event happens to 1.
I treat 115 indivuals with B, and the event... |
I am exploring possible features for a binary classifier, probably using a SVM, and have encountered an issue with correlation of features.
I have chosen a number of features that may be of interest because they are highly predictive of the wether an event is type 1 or type 2 (having one range of values for one and ano... |
Disclaimer: I need guidance and help with where to start looking for solution of the problem I have described below. My background is in optimization and I am new to statistical methods, so there is a good chance that I am asking the wrong question or/and used wrong terminologies (please correct if that is the case).
B... |
I have 54 variables that I need to correlate, but due to constraints I can only put up a maximum of 16 variables at a time for data collection. At the end of the day, I need estimates of the 1,431 pairwise correlations between the 54 variables. How can I figure out the smallest number of 16 variable sets that will allo... |
I want to visualize relative gene expression with barplot + error bars after qPCR analysis. I was asked to use the log2FoldChange values for the barplots, where each bar should summarize 3 values (the biological replicates).
I calculate the delta delta CT (ddCT) as dCT(treated) - dCT(control).
The fold change is calcul... |
I am doing linear mixed effect models in both R-studio and SPSS (doing this as I am trying learn LME in R). For some reason, I cant seem to get the numbers for the analyses to coincide. My dataset is on reaction time after sleep restriction or normal sleep.
Variable explanations:
ReactionTime: Response variable, conti... |
Which are the possible caveats of using a Bagging algorithm (such as Random Forest), when data are not independent?
Ensemble models usually exploit Bagging to reduce the variance by aggregating several models built on bootstrap samples of the original dataset.
However, observations may be dependent, as it happens with ... |
I did logistic regression and got an intercept of -14 and a beta_1 of 0.17.
My equation is: -14 + 0.17*x = y
How can I calculate the change of probability if x increases by 0.1, assuming a original probability of 20%?
Can I change beta_0 to log(0.2/0.8) and then add 0.1*0.17?
|
I'm trying to figure out how to incorporate this formula from this paper into the Weng-Lin update rule algorithms:
\begin{align}
\mathcal{P}[i \text{ beats } j] &= \frac{\exp{\lambda_i}}{\exp{\lambda_i} + \exp{\lambda_j}} \\
\lambda_i &= \sum_k^N X_{i,k} \beta_k \\
y_i &\sim \mathrm{Bernoulli}(\mathcal{P}[i \text{ beat... |
I have a problem understanding some basic theory related to regression analysis.
I will now be "quoting" the lectures of one of my professors. They assume the case of linear regression model and write it like this:
$Y = b_1X_1 + ... + b_nX_n + e$
Then they say that in terms of the sample this model corresponds to:
$y_i... |
I am researching several different recommender systems, some of which are based on a user K-Nearest Neighbour algorithm and some of which are based on a matrix factorization algorithm. My dataset is sparse and consists of interactions between users and items. Now, I am trying to split the data into a train and test set... |
Does bias eventually increase with model complexity?
Reasoning behind the question:
If I understand it correctly, "bias" measures the discrepancy between the expected value of our model's ($\hat{f}$) prediction and the expected value of the true, underlying model $f$. We can start by creating a simple model with high ... |
Say I have to estimate a model with a parameter $\beta$ that follows a parametric distribution. For instance, let's say that I want this parameter to follow a normal distribution, that is to say: $\beta\sim\mathcal{N}(\mu,\sigma)$. Here the parameters I will estimate will be $\mu$ and $\sigma$. When writing it in stati... |
I recently ran an experiment with 4 conditions where participants got a multiple choice task to select words best describing a subjective sensation. Now I'm struggling to figure out which analytical method I should use. There was no limit to how many of the 40 words they could select for each trial.
Essentially it look... |
Would there ever be a reason to repose a regression forecasting problem as a classification problem by, for example, using classes to describe if sales in one year are 10%,50%,90%, or >100% of current levels. Those things could naturally be inferred from the results of a regression, yet I have seen people doing such cl... |
The short version of my model is that I have ran a logistic regression (logisticmodel<-glm(FishObs~CGDD, family = binomial, data = dat1)) looking at when fish were observed (denoted by 0 or 1, 1 being observed) against thermal cues (CGDD). I ran this core model with three years of data (2015-2017) that I pooled togethe... |
I've been working on trying to create an AR model for the unemployment rate in the USA.
I started with de-trending etc to make my data stationary, then tested with a dickey fuller test to make sure there wasn't a unit root.
I like to do the calculations manually instead of using some software as it allows me to fully u... |
A vice chancellor believes that at her university (UoX) graduates on average have higher salaries that the overall graduate population in the UK. She knows that the average salary of all graduates in the UK is £29,065. She has asked you to test her theory. Let be the random variable that represents the salary of the U... |
I'm currently diving into sampling methods and I've read an introduction on the basics of them. However, I found myself getting confused on a particular example and my book provides no answer. Let's say we want to do a research about the time needed for the graduates of a specific university to get their first job afte... |
Let $U=(u_1, u_2)$ and $V=(v_1, v_2)$ be two randomly distributed points on the Euclidean plane assuming bivariate normal distributions $U \sim N(\mu_u, \Sigma_u)$ and $V \sim N(\mu_v, \Sigma_v)$ with unequal means $\mu_u = (\mu_{u1}, \mu_{u2})$, $\mu_v =( \mu_{v1}, \mu_{v2} )$ and unequal covariance matrices
$$
\Sigma... |
Came across this as an interview question that I saw online: given a covariance matrix with diagonals being all 1 and the off-diagonals being c, what are its eigenvalues?
Going by the definition $Av = \lambda v$, we have
$$
\begin{bmatrix}
1&c&..&c \\
c&1&c& ... \\
...\\
c&c&...&1\\
\end{bmatrix}
\begin{bmatrix}
v_1... |
In the context of a semi-supervised learning problem, what's the difference between using a classification algorithm vs a clustering algorithm?
Traditionally classification is supervised and clustering is unsupervised. However in this context, unlike traditional supervised learning, only a very small amount of labeled ... |
I'm using SPSS, new to statistics.
I have 2 groups of patients (Group 1: 1000 patients; Group 2: 400 patients).
One of five different interventions (surgery a,b,c,d,e) was performed on subjects in each Group.
I want to compare the frequency of each intervention between the groups (obtaining a P value).
So I want to sa... |
First I want to say that I am very new to this field with have been self-teaching.
I'm trying to find if there's a relationship between the DIX values that are greater than 0.45 and SPX returns (7-day, 14-day, and 30-day).
First I started by plotting the scatter plots and the first impression is that they do not have a... |
Is it possible to calculate quantiles from a probability histogram P(x) rather than from the data x itself? I have an unbinned histogram for discrete random variables, and I'm wondering if I can calculate the quantiles directly from this.
|
I am running a frequentist multi-level meta-analysis. However a reviewer has requested a bayesian alternative, so I can provide Bayes Factors.
My summary of my code is as follows:
priors <- c(prior(normal(0, 1), class = Intercept),
prior(cauchy(0, 0.5), class = sd))
m.brm <- brm(yi|se(se) ~ 1 + (1|StudyN),
... |
In the following matchit() example, I want to give more importance to (prioritize) matching Sales1 and Sales2 over other variables. Is this possible?
match = matchit(treat ~ Sales1 + Sales2 + Sales3 + gender +
Geography + Income, method = "nearest",
data = data)
Thanks in advance!
|
I have created a multivariate multiple regression model with 3 dependent and 3 independent variables in R, and would like to generate meaningful visualizations. All variables are continuous. When working with multiple regression models with 1 dependent variable, this is fairly easy.
For example
set.seed(0)
df <- data.... |
have a three armed clinical trial with two treatments and one placebo. I am to compare the Restricted Mean Survival Time among the three.
I need to find the sample sizes for each arms (equal allocation)
I know that R software has survRM2 package for calculating sample sizes for a RMST of two armed trial. The code as us... |
The binary multiplier channel is described in Section 15.3.2 of Cover and Thomas (second edition), as follows:
Consider a multiple access channel with binary inputs and output $Y=X_1X_2$. Such channel is called a binary multiplier channel. It is easy to see that by setting $X_2=1$, we can send at a rate of 1 bit per t... |
It has been known that we can not get ATE from MatchIt package with method = "nearest" in R because What is the purpose of using MatchIt in R with nearest neighbors for estimation of ATE if it does not report which pairs are matched? said that "the covariate distribution of the matched samples will be similar to that... |
I have incident data and for each incident, there are multiple individuals each with sex/age. The data looks something like this:
incident
person1
personl1sex
person1age
person2
person2sex
person2age
1
A
0
10
B
1
5
2
A
0
10
3
B
1
5
C
0
7
4
A
0
10
C
0
7
5
C
0
7
A
0
10
There can be up to 8 persons ... |
First of all, I'm a stats newbie. I have no formal education in stats, nor did I do well in math classes. I'm sorry if my question is phrased poorly.
I want to know how to calculate statistical significance to see how much a variable (i.e experience) contributes to wins in the sports, specifically MMA.
I've been tracki... |
Objective: Build a screening tool to identify people at risk of X.
Approach: Using data from contexts A and B, we explored logistic regression models to predict X. We did forward & backward variable selection, and selected the model based on AIC & BIC (using an elbow plot). We developed a scoring tool with integer valu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.