instruction
stringlengths
9
38.7k
I want to resample an existing study with the primary aim of investigating how the empirical sampling distribution of a statistic varies with different sample sizes. For example, if the original study has $N=100$ observations, I'd like to investigate the form of the empirical sampling distribution when $N=1000,~ 100,~ ...
Hi lets say your CDF is from $Unif(-1,1)$ so $F(x) = (x+1)/2$ Its easy to understand how $$P(X<x) = F(x) \implies xP(X>x) = 1 - F(x)$$. But how do I breakdown $P(|X| < x)$ or $P(X^2 < x)$? What about $P(|X| > x)$ or $P(X^2 > x)$?
Large model, small training data but good result? I have text auto-encoder model where I have used few layers of Transformer and trained it using my own data. I have a vocab size of 18664. Here is my model: Encoder: class TransformerEncoder(nn.Module): def __init__(self, input_size, num_head, hidden_size, num_layers)...
I'm trying to run a simple mixed model by subject id: y=week. Since it's repeated measures, I assume that I need to use mixed model even though I want to run the model by subject id? In addition, since the measurements are equally spaced, I tried to use AR(1) covariance structure. However, my code(below) didn't work an...
I have this vector of frequency values x = c(100,400,500,600,700) when conducting chi square test goodness of fit I have this result that has a global significative p value chisq.test(x) However I am looking for a posthoc test function in R that can tell me which values are significantly different from each other and...
How can I find the converging distribution of $$\frac{1}{\sqrt{n}}\sum_{i=1}^nY_i^2,~Y_i \overset{\textrm{iid}}{\sim} \mathcal{N}(0,\sigma^2)$$ as $n\rightarrow\infty$? My first thought was CLT but I do not think it works because of the division by $\frac{1}{\sqrt{n}}$.
I ran logistic regression by R. I want to know what relation there is between AIC of each predictor variable and final AIC?
My output is a table of coefficients, together with standard errors and 90 % confidence intervals, nothing else. I miss the degrees of freedom but I do have the number of observations. How can I calculate a F-statistic testing if some of these coefficients are mutually zero in R?
I have a stationary (constant mean, constant standard deviation) time series $y_t$, that contains some missing values and some incorrect values (values so far from the distribution they are obviously wrong). I have a simple method to detect these incorrect values which works well. However, I would like to know if there...
I am following computation statistics by givens and after looking at the supplementary code, I find that: $$I''(\beta) = -Z^TWZ$$ Where Z are the column vectors of the covariates, and W is the diagonal matrix with ith diagonal entry $\pi_i(1-\pi_i)$ The code is provided as the following: hessian = matrix(0,2,2) hessian...
I am new to mixed-effect models and statistics, and I need to do a project for my thesis using mixed-effect modeling techniques. My research aims to model how cardiovascular risk scores change over time. In this case, my mixed-effect model is lmer(log(Score) ~ Time + I(Time ^2) + (1+ Time + I(Time ^2) | Patients)) I ...
I have a question that is quite simple, but I can't wrap my head around it. Say I have hourly data for one year, say 2020, and I split this data into a train and test set where the training set is the first 11 months. I estimate the coefficients for these 11 months according to this model: $$ Y_t = \beta_0 + \beta_1 Y_...
When i train my model with 30 epochs, the training and validation error curves seems to stagnate: However, when i train my model with 60 epochs, the training and validation error curves start to decrease: Can anyone explain me why? In the first graph, shouldn't the minimum validation error be closer to 0.10 instead o...
Let's say I have a discrete distribution $p$ over n states that I want to sample from, but I only know a similar probability distribution $q$. However, I can obtain unnormalized probabilities $c \cdot p(i), \ i \in {1, ..., n}$ at a high computational cost. To get approximate samples from $p$ I was considering using MC...
Dear statistics experts I need your help with something that has bothered me for a while now. My problem revolves around perfect prediction and essentially boils down to: Why would we ever set up and estimate a statistical prediction model if we could just use the conditional distribution instead (given that we have en...
I have 2 questions regarding the likelihood value calculation with glm. It seems that sometimes it calculates the likelihood value including the binomial coefficient and sometimes it does not. Tow cases are described below: Why does glm calculate the log-likelihood value differently for the following two cases at the ...
I have doubts concerning the correct interpretation of the odds ratio when I am dealing with categorical variables. I try to explain it better: Suppose having a multivariable logistic model (glm) with gender as one of the possible predictor. Then, I compute the odds ratio with the corresponding confidence intervals and...
Situation customer contracts available as scanned images were turned into text files using OCR software the resulting texts contain spelling errors that occurred during OCR, e.g. words like "useful" were mistaken as "u5eful" Question What are current best practices for correcting these OCR spelling errors as a post-p...
I think I have a pretty simple question about constructing confidence intervals for normalized random variables. If I have i.i.d random variables $X_1, X_2, X_3, ..., X_n \sim F$ for some distribution $F$, and say i have the standard mean estimator $\mu = \frac{1}{n}\sum_{i} X_i $, then it is easy to construct confiden...
I have result from R: polars polr(formula = cat ~ log_pop21 + birth + ngrw, data = new_df, na.action = na.omit, Hess = T, method = "logistic") Coefficients: log_pop21 birth ngrw 3.1346164 1.0315305 -0.2486664 Intercepts: 0|1 1|2 2|3 3|4 4|5 10.04250 12.66218 15.00460 18....
I would like to ask whether you could suggest me a test for the following situation: I have two groups (A and B). Both groups have data for a categorical variable called X that has 3 categories. I would like to test whether the answers for each of the category are different between two groups. For example, I want to kn...
for the past few months I've been working on a project that tries to predict a price for metaverse real estates (Virtual Houses). The game is called sandbox and it is sold in cryptocurrencies, which causes it's prices to vary a lot. The data contains every transaction that's occurred during the 3 years: which land was ...
This question is an extension of a prior question. I have a longitudinal dataset with several binary variables, along with an id variable and a time variable. In my research project, these binary variables are observed behaviors during a videotaped task (0 = absent, 1 = present) and I am interested to examine how the b...
I need a guide on how to derive the posterior distribution for $\theta$ and checking whether it is proper. I have been given that the likelihood function is $$L(\theta; x) = \theta \exp(−\theta x).$$ You decide to perform Bayesian inference on $\theta$ given a realisation $x = \{x_i\}_{i=1}^N$ of an i.i.d. sample $X_1...
What is the matrix $(X'\Omega^{-1}X)$ X) in Generalized Least Square / Weighted Least Square? More precisely, We know:
I am trying to understand whether omitting insignificant features (with weights close to zero) will change the overall result of a multiple linear regression problem and if so by how much. In particular, I would be interested in deriving an explicit error bound (if this is possible at all?). 1) To establish a common gr...
Suppose I have two mean zero, independent Gaussian random variables $X \sim \mathcal{N}(0,\sigma_1^2)$ and $Y \sim \mathcal{N}(0,\sigma_2^2)$. Can I say something about the conditional expectation $E(X^2| k \geq|X+Y|)$? I think the expectation should be given by the double integral $$ E(X^2| k \geq|X+Y|) =\frac{\in...
I received abnormal results when using glmrob (R function from robustbase) when assessing the association of a binomial independent variable X0 with a binomial dependent variable Y using logistic regression. The log odds ratio of X0 jumped from 16 (exp of 2.74) to a whopping 200 (exp of 5.3) after adjusting for X1, X2,...
Conceptualization of RM ANOVA: So the way that I conceptualize repeated measures ANOVA is that I have some dependent variable that is measured across different levels of one or more independent variables. So if I wanted to see if the valence of an image (positive, negative, neutral) makes people squirm in their seats (...
I am simulating a DGP like this: $$\operatorname{logit}[p(y) = 1] = \beta_0 + \beta_1\textrm{Treatment} + \beta_2\textrm{Treatment}\times\textrm{IsFemale} + \beta_3\textrm{ IsFemale} + \beta_4 \textrm{IsSmoker}$$ and assume I know there is an interaction effect. library('paramtest') library('pwr') library('ggplot2') li...
I conducted AIC selection on a set of models, and isolated my top 3 models. I then calculated the AIC weights of each model, and got the values 0.99, 1.92e-14,and 6.9e-18. I never saw weight values that low, and am worried I might have screwed up somewhere. Has anyone else seen AIC weights like this?
I am using auto_arima() function in pmdarima package. In its summary() results it returned a best model specification as: Model: SARIMAX(2, 1, 2)x(2, 0, [], 7) But I can't find any explanation in the pmdarima documentation what it would mean if they return a model specification with an empty square bracket. Could anyo...
Consider a binary classification dataset (X, Y), generated according to some unknown distribution $P(X, Y)$. I have a question about models which output probabilities by minimizing the cross-entropy loss (logistic regression and deep models using a final softmax layer). do these models attempt to predict the true cond...
Let $X_1, \dotsc,X_n$ be i.i.d. from $N(\mu,\sigma^2)$, then we know that sample mean $\bar X\equiv \frac{1}{n}\sum_{i=1}^nX_i$ and $S^2=\frac{1}{n-1}(X_i-\bar X)^2$ are independent. Obviously, they both depend on $\bar X$ and depend on all observations as well. So this independence result is really surprising. I'm won...
I'm trying to perform error propagation for some photometry code I'm writing, but I'm having some trouble with it! I have a value $x$ that I draw from a distribution with standard deviation $\sigma_x$, $x = \mu_x \pm \sigma_x$. I feed $x$ into a polynomial function, $f(x) = \sum_i c_i x^i$ How do I find the standard de...
Suppose we have a data which consists of two normals, x = rnorm(50,mean=1,sd=2) y = rnorm(50,mean=2,sd=3) z = sample( c(x,y) , size = 100, replace=FALSE ) The goal is to estimate the two normal parameters and then classify which of the two normal families each of the data points belong to. Here is an approach to this ...
I am wondering how I can map this problem to something known. Let us start with a standard linear regression framework, and suppose we want to reconstruct an observed signal $y$ from single known components $\mathbf {A}$ that are mixed following a single unknown vector of weights $x$. We know $\mathbf {A}$ from reliabl...
I'm running an SVAR in R, following this guide: https://levelup.gitconnected.com/structural-vector-autoregression-in-r-5d6dbfc56499, with slightly different variables (CPI -> Violent Crime Rates -> Federal Funds Rate). Below are my models: var1 <- VAR(ts_all, p = 1, season = NULL, e...
I am struggling to obtain the Value at Risk from my DCC GARCH analysis. I have done the following code: SMF.frame <- data.frame(df_fuldperiode$spot_log_returns [2:2217], df_fuldperiode$monthly_log_returns [2:2217]) sspec <- ugarchspec ( mean.model = list( armaOrder = c ( 5 , 4 ))) mspec <- ugarchspec ( mean.model = lis...
I'm working on a project focused on pricing houses. Looking online I see a lot of works and companies providing the performances of their model using the median instead of the mean (see for example Zillow). And to me this makes total sense, since its a statistic less influenced by outliers (in my scenario big and parti...
I'm currently trying to eyeball the type of distribution of this histogram to properly specify the family of distribution to use for a generalised linear model in python. I'm pretty sure it's a gamma distribution but the parameters from the model are way off. Can anyone corroborate my thoughts on if this is indeed a ga...
I have the following results on my ARIMA forecast and was wondering how I can create an equation out of my coefficients? I am using auto_arima provided by the pmdarima library in Python. Best regards
I'm estimating a hierarchical/multilevel model and a standard fixed effect model for a cross-national survey, with level 2 set at the country level. When I look at the outputs for these models however, I see that the hierarchical model lists a slightly higher n for the level 2 groups than the FE model. I think this is ...
I have a dataset that includes real world data (not experimental or survey data) for a set of countries year by year for 40 years. The data was collected by entities such as the World Bank and United Nations. We want to see how well this data predicts things like GDP. In the OLS case, R2=0.47 but the residuals are not ...
In K fold cross validation, we divide the dataset into k folds, where we train the model on k-1 folds and test the model on the remaining fold. We do so until all the folds were assigned as the test set. In every of these iterations, we will train a new model that is independent of the model created from the previous i...
I already referred these posts here. Please don't mark it as duplicate. This post is continuation of my other post here. So, am not providing the full context here. You can refer the link here a) Is there any other regression model that can take raw input (without any data standardization/transformation using log,sqrt ...
I am currently working on a regression problem to predict customer revenue in the next 3 or 6 months etc. So, am currently using different regression approaches. However, I see that the predicted y values are negative (for monetary value). but monetary value cannot be negative. But my R2 value is 90% in train and 82% i...
I want to do some classifications on open access "Activity Recognition Using Wearable Physiological Measurements" data set. In this dataset, there are 40 subjects whose Electrocardiogram (ECG), Thoracic Electrical Bioimpedance (TEB), and Electrodermal Activity (EDA) information have been recorded for activity recogniti...
When running tests for homoscedasticity, using R gave the following results: Bartlett test of homogeneity of variances data: list(Full_data_1$ICPP, Full_data_1$PI) Bartlett's K-squared = 7.9171, df = 1, p-value = 0.00489 However, when running a Levene's test the result was a significance of 0.8397. The data is normal...
I am wondering why training error converges more smoothly when I am not applying randomization after each epochs? After each epoch I am taking the loss obtained in my last minibatch. I see that when using no randomization this loss is decreasing monotonously. Contrarily when using randomization I see a convergence in m...
I would like to ask about the difference between applying the multilevel/hierarchical models and including the moderator variable in multiple regression analysis. This is for considering the individual differences in the context of my study. Thank you!
Frequentism is very roughly the view that the probability of some attribute or event is identical to its actual relative frequency or hypothetical long-run, relative frequency. My question: what is the relationship of significance tests in statistics to Frequentism? (By "significance tests" I mean the general procedure...
I have one data is normal distribution (VAR00004) and another data is non normal distribution (VAR00002). If I want to compare this both data, what should I do in the T-test or is there another available test? The both Graphs are showing here too.
I am trying to fit the weekly forecasting model, however, I only have 60 data points.. trying tslm i.e. the linear model with time series components, and comparing it to harmonic regression, the linear model had lower AIC but higher AICc. As a further test, I then split my data into 54 training and left 6 as test data ...
I have a doubt regarding categorical data encoding, and, missing value imputation.. Say, I have a categorical dataset whose one of the attributes is gender. The attribute is consist of two values male and female. There are some missing values on this attribute. The dataset is coming with pre-processed encoding techniqu...
In at least certain strands of "classical statistics", there seems to be a shared commitment to the following claim: For any null hypothesis H, if the p-value of H and the observed test statistic is below the significance level alpha, then we should reject H. For example, this is an excerpt from the Wikipedia page on s...
Why are both Order and Rank conditions needed for identification with instrumental variables?
I started to study linear regression this autumn and got stuck at the estimation of regression parameters (in matrix form). In parameter estimation of the general linear model, the OLS method is used to estimate the parameter $\beta$ and result in least square estimator $\hat{\beta}$ in normal equation $$X^\top X\hat{\...
At a vague intuitional level, I feel like, if we generated a 0%, two-tailed, truly central (or "equal-tailed") confidence interval (CI), the number it would wrap around would be a median-unbiased estimate of the population parameter in question. Am I confused, or is this right? Is there another intuition of it that i...
Let $n \geq 1$ be an integer. Let $X \sim \operatorname{Beta}(i, n - i + 1)$ where $i \in \{1, ..., n\}$. Therefore: $$ X = \frac{A_n}{A_n + B_n} $$ where $$ A_n = \sum_{r = 1}^i Z_r, \qquad B_n = \sum_{r = i + 1}^{n + 1} Z_r $$ where $Z_r$ are i.i.d. $\operatorname{Exp}(1)$ random variables. Why? PS. This is from [^Ar...
I would like to create a gamma probability distribution in R with a median of 3 and interquartile range of [2,5]. I am familiar with the methods of moments to estimate the scale and shape of a gamma distribution but this is based on the mean and standard deviation and both are not available. Is there a way to estimate ...
I am trying to compute probit regression that includes interaction terms. When I compute marginal effects after the main coefficients R gives me marginal effects for interaction terms and Stata doesn't. It says that Stata doesn't compute marginal effects for interaction terms because logically it's not possible. But th...
I tried to implement a rejection sampling method in python based on something explained during class. The target distribution is the normal distribution and the proposal is the exponential distribution. To accommodate for the different domains. The following pdf was used: \begin{align}X &\sim N(0,1)\\Z &= |X|\\ f_Z(x...
I have coded a simple supervised ML classification using 10-20K data points for 25 samples. Linear ML models run quickly for example naive Bayes, linear regression and SVM linear on a small multi-core CPU desktop with 8 G RAM via scikit-learn. However, non-linear models for example lasso regression and non-linear SVM v...
I am learning about variational inference and Gibbs simpler. I am in the process of deriving variational inference on my own. In this process, I need to make a comparison with Gibbs sampler. I am reading the book "Machine learning a probabilistic perspective" by Kevin Murphy and I found this sentence that I need help w...
I am looking into applying the Johansen cointegration procedure to variables of very different scales, going from units to tens of thousands. I use log(prices) but the scale difference is still very large, plus variable with values < 1 become negative. I am wondering what's the best approach to deal with this issue. If...
It it possible for a Convolutional Neural Network to output "no classification" for a multi-audio classifier? Is it common practice to set % thresholding to the output vector of probabilities? I am building a CNN audio classifier that is able to detect chicken chirps in raw audio data. So far I have trained the model b...
I am trying to find the strongest correlation between two data sets in R and one set has 9000+ columns. I used cor() and it worked well, but is there a function or way to find the strongest correlation value and column name? Note that I do have many NA values in the correlation matrix, but this is to be expected for my...
I have two binary classifiers working on the same dataset. If their ROC AUC values differ by at least 0.05, is it enough to declare that the performance difference between the two classifiers is statistically significant? Because, this is the rule of thumb I have developed over the years to have an idea of if two metho...
I am trying to improve my understanding of lavaan::sem models when using a probit link function by comparing the output to simple probit regressions. Currently, I see that the coefficients for each approach are approximately the same, but the regression intercept is negative, and the sem value is positive - although th...
Let $X_1,X_2,...,X_n$ and $Y$ be random variables. I know that: $$\label{aaa}\tag{I} E\left[\sum_{j=1}^n X_j \Bigg | Y \right]=\sum_{j=1}^n E\left[ X_j \Big | Y \right] $$ Now, suppose that $Y$ takes values $1,2, 3,...$. How to prove the following? $$E\left[\sum_{j=1}^Y X_j \Bigg | Y \right]=\sum_{j=1}^Y E\left[ X...
My goal is to understand what is PCA for in supervised learning. Do we use the PC1, PC2, PC3 to the supervised learning? Do we use the generated labels to the supervised learning? If we use the PC1, PC2, PC3 and/or generated labels, do we use the original numerical features in supervised learning? What I understand i...
I am trying to use GammaRegressor to predict the customer revenue in the next 3 months, 6 months etc. So, I tried using the GammaRegressor based on suggestions from the posts here. My Y variable ranges from 0 to 6172000.9368 However, when I passed in my data, I got the below error GammaRegressor model failed to execut...
I have a given question that I just cannot figure out. From what I can understand, both estimators would be unbiased (since e_1 is the sample mean and e_2 is an unbiased estimator for uniform distribution), which seems unlikely. I appreciate any help or hints. Every day you take the train to the work. You know that the...
By Cochran's theorem, if $y_1,....,y_n\sim\mathcal{N}\left(0,\sigma^2\right)$ independently with a known variance $\sigma^2\in\mathbb{R}_{>0}$, then \begin{equation} (n-1)\frac{S^2}{\sigma^2}\sim\chi^2_{n-1}, \end{equation} where \begin{equation} S^2=\frac{1}{n-1}\sum_{i=1}^{n}(y_i-\bar{y})^2\sim\frac{1}{n-1}\sum_{i=1}...
I am trying to fit the function $A/x³$ to some data points (X,Y). I tried using least squares to fit the function $A x^3$ to the data points (1/X,Y) using least squares. However I do not obtain a good result. I though that maybe the data points need to be weighed somehow? Here is the python function I am using right n...
Consider we have a set of i.i.d. measurements $x=(x_1,...,x_n)$ corresponding to the random variabel $X$. Each of these measurements is associated with an additive error, such as $x_i=x+\epsilon_i$. A zero-mean Gaussian PDF is assumed to describe the error, $f_{\epsilon_i}$. The random variable $X$ follows a normal dis...
I have a pandas data frame with a target variable, which is binary (classes progressive / non-progressive), that I want to predict. Before making the model I want to do some feature selection, and that is by comparing the density distribution of each predictive feature, between the two groups in the target variable. Fo...
I understand "domain adaptation" to be a type of "transfer-learning" technique. Domain Adaptation: By applying knowledge obtained from a domain with sufficient teacher labels (Source Domain) to a target domain without sufficient information (Target Domain), a discriminator, etc. that works with high accuracy in the tar...
Please help me with this classification question. Say I run an experiment where I have a treatment and control group. I then measure some feature, $x$, of both groups and use MCMC to sample the posterior distribution of each group's mean $x$. I then classify the posterior draws of each group's $\overline{x}_i$ as belo...
What is the difference between blocking in an experiment design and a split plot design?
I have a matrix with many rows (>18000) and few columns (6), where five are numerical and one is a binary factor and i'd like to find an efficient and simple way to visualize the relationship between the factor and the other variables. I want to find out how observations with, for example, categorical value = 1 correl...
Here is the resulting heatmap for train, val, test set. I also apply PCA to train,val,and test set. Because from the train set, there are a lot of features that has high correlation with each other. According to what i searched online here and here, we should not balance the validation and test set as its better to ma...
I am doing an experiment where participants will need to choose Yes or No at some point and then answer a question, let's say, their happiness, measured continually from 0 to 1. Now, I split the samples into two groups based on this binary choice: a Yes group and a No group. Then I want to check whether there is any di...
How do we handle variables that are mixed between unordered and ordered categories? For instance, if we have a group of executives who are either CFO, COO, or CEO, we might think that CFO and COO are distinct categories but not in any particular order. CEO, however, ranks above them. Another example could be military r...
i have pre and post measurements of biodata (20 clinical measurements) taken before and after the treatment from a group of 30 people, out of which I have 20 successful and 10 unsuccessful subjects. I want to analyse the differences in these clinical measurements with regards to their (pre/post) measurement and the gro...
I've seen e.g. the minitab explanation on this topic which isn't bad but though, in the end, I can't explain which statistical term or the like I would (or could) investigate with each of them. I understood it is variability but is the variability from a replication simply greater than from repeating or is it a "differ...
So, in this problem I am asked to find the cumulative distribution of the continuous variable T and the probability that $J=3$ given T is larger than 10 and lastly the conditional expectation of T given $j=2.$ I have tried just adding the pdf but they do not have the same range? Any idea what to do?
I have some questions about the spectral analysis in time series. For a zero-mean and covariance stationary time series $\{X_t\}$ with autocovariance function $\gamma(h)=Cov(X_{t+h},X_t)$. The $\textbf{spectral density}$ is defined to be the Discrete-time Fourier transform of $\gamma(h)$ $$f(\lambda)=\frac{1}{2\pi}\sum...
I am studying ROC for model evaluation for the first time and I have two questions that are confusing me : I totally understand how to construct ROC with a logistic regression model, in which for every threshold we compute the true and false positive rates. This makes sense with logistic regression as logistic regress...
Say we have the latent variable $y_i^*=x_i\beta-\epsilon_i$ and $\epsilon_i \sim N(0, \sigma^2)$. $y_i^*/\sigma=x_i\beta/\sigma-u_i$ where $u_i=\epsilon_i/\sigma \sim N(0, 1)$, and so can use Probit to estimate this regression. $$ Pr(y_i=1|x_i) = Pr(y_i^*>0) = Pr(x_i\beta<\epsilon_i)=\Phi(x_i\beta/\sigma) $$ Thus, $\be...
I hope you find this problem interesting. Consider the following model: $Y_t = X_t'\beta + \varepsilon_t$ with $\varepsilon_t \overset{\textrm{iid}}{\sim}\mathcal{N}(0,\sigma^2)$ for $t=1,\ldots,T$. Call this model $(1)$ and the model $Y_t = X_t'\beta + \varepsilon_t/T^{\alpha}$ with $\varepsilon_t \overset{\textrm{iid...
Here's the question. You are flying to Zanzibar (Tanzania) with a connection in Aachen (Germany). You checked a bag. Assumptions: There's a 50% chance that your bag successfully made the connection in Aachen. Conversely, there's a 50% chance that your bag is stuck in Aachen. The baggage crew in Zanzibar loads all the ...
Suppose you have two clusters of points in the 2-D coordinate plane sampled from two Normal distributions. The clusters are centered at (0,1) and (0,-1). Is the probability that the x-axis perfectly separates the two clusters maximized when: -the # of sampled points is small and the variances of the Normal Distribution...
I am a student working on an original article about oral appliances that are place after the extraction of primary teeth in children. there are two variants of these appliances, fixed and removable. I collected the data retrospectively (from 2019-2021), so I have no control of how many was placed and ended up with 345 ...
I am using data from the National Survey on Drug Use and Health, which reports age in a combination of years and brackets of various sizes: 20, 21, 22-23, 24-25, 26-29, etc. Rather than use these categories, I am interested in operationalizing age as a numeric predictor in a regression. Is there an established method ...
I'm fitting a model with a 2-level categorical and a numerical predictor. As far as I'm concerned, I cannot use car::LeveneTest() to assess homoscedasticity since I have a numerical predictor, right? What should I use instead to assess homoscedasticity on both numerical and categorical predictors? expected error: car...
Suppose I have a structural model parameterized by some $\theta = (\beta_i)_{i=1}^n$, but I am only interested in obtaining an unbiased/consistent/low variance estimator for $\beta_1$. For example, let's say I have the model $y = \beta_0 + \beta_1 x + \varepsilon$, where $E[\varepsilon|x] = 0$, but I am only interested...
What are techniques or best practises to choose a forecasting model in an automatic way? In our company, we have more than 10,000 articles with different sales characteristics. We have no chance to manually set up a model, so we need to rely on automation. Right now, we have 3-4 different models and we choose the best ...
I am conducting a Mixed Measures Two-Way ANOVA in R to test the effect of an intervention. There are two conditions (control and intervention) with two time-points (pre-test and post-test). Each participant only went through one condition (either control or intervention) and there is only have one DV. However, I have m...