instruction
stringlengths
9
38.7k
as you can see on the figure i linked i am currently fitting my data (which looks like a sigmoid) using a function i defined with 5 parameters. def sigmoid(x, L, x0, k, b, e): y = (L + e*x) / (1 + np.exp(-k*(x-x0))) + b return y then as i said i'd like to have an idea of how good my fit is (kolmogorov, chi2) so i wen...
I have an experiment with time series data (spike rates). A Python script calculating their autocorrelation with statsmodels.tsa.stattools.acf was apparently giving different answers than an implementation of equivalent logic in Python, using the same bins and 99 lags in each case. The answers had the same pattern, bu...
You'll often see the goal of a statistical estimation problem as being to fit a model such that it $\approx p_{*}(y|x)$ where $p_{*}(y|x)$ is the "true distribution of the data". My question is: what uncertainty is possessed in this "true distribution of the data"? Does it assume infinite training data...in which case ...
I am struggling with the following problem (casella & berger 4.30(b)): $$ \text{Suppose that} \;\;\;Y|X=x \sim normal(x,x^2) \;\; \text{and} \;\; X\sim uniform\,(0,1).\\\text{Prove that} \;\;\frac{Y}{X} \;\text{and}\; X \;\text{are independent.} $$ My attempt: $$ \text{Let} \; u= y/x \;\; \text{and}\;\;v=x. \\ \text{Th...
From a total of $N$ words i have the following dataset where the first column represents the ranks and the second the frequency. For example $$\begin{array}{cc} 1 & 4300 \\ 2 & 3100 \\ 3 & 2500 \\ 4 & 1900 \\ \vdots & \vdots \end{array} $$ I want to find the constant where satisfies $$cf_i =\frac{\text{const}}{i}$$ whe...
I did a power analysis to calculate the sample size in GPower. Now I'd like to do the same in R. However, I am not able to figure out how... I found ss.2way but that seems to require different inputs. Is there any way to calculate the sample size for a 2x3 design in R? Thanks in advance. This is the GPower input/output...
Is it true that for a square symmetric matrix such as the covariance matrix, the singular values are equal to the eigenvalues? The eigen decomposition for covariance is the same as singular value decomposition?
Let say I am sampling from a population with an unknown distribution to approximate the mean of the population. I am trying to figure out how large my sample size n has to be in order to guarantee with 95% confidence that my sample mean is within, say, 1% of the population mean. I know I can get the 95% confidence inte...
In page 64 of Bayesian Data Analysis by Gelman et.al. they write ... sensible vague prior density for µ and σ, assuming prior independence of location and scale parameters, is uniform on ($\mu$, $\log~\sigma$) or, equivalently, $p(\mu, \sigma^2) \propto 1/\sigma^2$. Also in page 87 of The BUGS Book (pdf download) the...
I'm a physicist trying to finally get a hold on practical statistics for particle physics and am having problem with the following -- I apologize for the lack of formality below. Suppose the number of events within a single channel is governed by a Poisson distribution $P(N,\mu)$, whose parameter for Null ($\mu_b$) and...
What kind of deep learning is the generation of numerical features (Y) from objects (X) used to compute a score (f(.), differentiable) that is to be maximized directly? Basically NN$\theta$(x) = y, f(y) = score, so $\frac{d score}{d\theta} = \frac{dy}{d\theta} \frac{d f(y)}{dy}$ can be used for backpropagation; f(.) ca...
I want to characterize the relation of a few input parameters to a single output parameter. The problem I have is that my data is collected from several groups. The groups are defined both by the input parameters and by how the input parameters interact with the output parameter. I don't know the identity or proportion...
I am using R. I have a dataset that looks like this using srt(): 'data.frame': 233 obs. of 3 variables: $ Design : Factor w/ 4 levels "Crossover","Observational",..: 2 3 3 3 4 3 3 1 3 2 ... $ Status : Factor w/ 3 levels "Active","Passive",..: 1 1 2 2 2 2 1 1 2 1 ... $ Outcome: Ord.factor w/ 3 levels "Positive"<"N...
I I want to perform a paired t-test to check if there's some effect, I have the distribution of "before" and the distribution of "after" the manipulation. Do I need to assume the population variances of the two distribution are equal ?
As I am reading about recommender systems in Machine Learning, UV decomposition caught my eye (click for an explanation or see below). So I have two questions: Question 1: what are the drawbacks of trying to UV-decompose a 1 by m vector into a product of a 1 by d ( $U$ ) vector and a d by m matrix ($V$)? As far as I ca...
Define $\pi_i$ as the probability that person $i$ will be missing from your sample and $Y_i = 1$ denotes that a subject is missing. Say we're in a missing at random (MAR) scenario where $\pi_i$ depends on two known continuous variables $X_1$ and $X_2$: $$logit(\pi_i) = \beta_1 x_1 + \beta_2 x_2$$ Let's say that I intro...
I have a known distribution for my population, and it is very right skewed. Let's say Lognormal with mu = 0 and sigma = 3. The mean of this distribution is about 90, and the median is 1. For a given sample, I am interested in knowing the ratio of values in excess of a certain threshold (lets say 90) to the total sum of...
I am planning a study where we have a low number of observations. We know we need to control for at least two variables, but other variables also exist that we can control for. It seems to me that adding variables to an analysis is always best. By controlling for the variables that have the largest effect, we can reduc...
There are two classifiers; Classifier_A -> [A] Classifier_A outputs a binary variable either A or nothing (implicitly not A). Classifier_B -> [B, C, D] Classifier_B outputs any n-combination of B, C, D. All three variables are booleans. And a lack of an output implicitly implies that that output is false. Multi-class....
I am working on a multilevel analysis aiming to investigate factors that impact student GPA. The data comes from 16 different schools. To include school effects, we are using a mixed effect model (with random intercepts). However, I would like to understand the effect of school tuition on student GPA and I am confused ...
I think I understand what average precision is: the area under the precision-recall curve.The curve is constructed by calculating the precision and recall metrics at each threshold. There are a few methods how you actually calculate/approximate area but that is not the focus of my question. For me it was clear how AP i...
I have been using GAMMs to analyse time series data and I have included a smoothing term (hour of day by season) and I cant seem to find the results for the winter season. I have the proper information (edf, Ref.df, F, and p value) for all my smoothed terms and each season except for winter. I am using the summary func...
In my team we do a study on a group of patients undergoing abdominal surgery and we evaluate the correlation between frailty amongst patients and complications. Background knowledge: We use a frailty-score (Clinical Frailty Score, CFS) where 1 is non-frail and 9 is severe frail. Patients are categorized into three grou...
Let's say I have $n$ samples which are vectors of length $p$. I know that the $p \times p$ sample covariance matrix is singular if $n \leq p$. Is there another estimator for the covariance that results in a non-singular matrix when $n \leq p$? My goal is to estimate covariance from many datasets and then quickly sample...
I am trying to understand how the values of the irf plots are estimated I read following page: https://www.statsmodels.org/stable/vector_ar.html But I don't understand how the values of the impulse response are estimated. I have a model that I fit with order of 3. result = model.fit(3) coefficients and residuals: resu...
I have the following result from a hierarchical model. I know how to write the equation for a multiple regression model. Is it possible to write a similar mathematical equation using the coefficients from this hierarchical regression model?
I was always taught to use $p\times(1-p)\times n$ for binomial variance. In a textbook for actuarial problems, I have: probability of death benefit A .01 200,000 B .05 100,000 Using $Var(A) = .01\times 200000^2 - (.01\times 200000)^2 = 396000000$ I get the same answer with binomia...
I am looking to build a multi state model some packages for instance in R are for panel or intermittently observed data (msm package) which I believe would be interval censored data and others can be used to fit models where transitions times are known (packages such as mstate and flexsurv). My question is to whether...
I did ANN classification using SMOTE random sampling in python but I found strange plot loss and accuracy results. This is my code: #With SMOTE sm = SMOTE(random_state=42) Train_X2_Smote, Train_Y2_Smote = sm.fit_resample(Train_X2_Tfidf, Train_Y2) #TRIAL 4 def reset_seeds(): np.random.seed(0) python_random.seed(...
Can someone explain me the difference between these approaches, if you want i can provide the results, but since they are quite extensive, i could attach on demand. I'm working with the Theory of Planned Behavior, lets say a1,a2,a3,a4 are for construct A s1,s2,s3,s4 are for construct S p1,p2,p3,p4 are for construct P ...
As is in the title, I'm curious: Is including only the consecutive observations of an ID in longitudinal data a prerequisite for estimating ID level fixed effect? For instance, I have longitudinal data with the structure of firm_id-year. There is one value of firm_id, say, 'Corp_Umbrella,' with the value of sales at ye...
I am running a statistical test to determine if females are more influenced by the framing effect. I designed a survey with three overall questions, each with a "positive frame" and a "negative frame". Each participant would be randomly chosen to answer either the positive or negative frame, and each frame would have a...
We'd like to test if two rates (number of occurrences / number of days) are statistically different for a paper. However, for one of the rates (let's say Rate A), we have uncertainty around the exposure (number of days). We have several different estimates for the exposure of Rate A. But the exposure variability is not...
I have been using GAMMs to analyze time series data and I have included a smoothing term (hour of day by season) and I can't seem to find the results for the winter season. I have the proper information (edf, Ref.df, F, and p-value) for all my smoothed terms and each season except for winter. I am using the summary fun...
Suppose that I observe a bi-variate joint distribution over two random variables, $(X_1,X_2)$. I want to represent this joint distribution as arising from a function $F$ applied to i.i.d. uniform random variables, that is, I want to find $F:\mathbb [0,1]^2\to\mathbb R^2$ such that when $U_1,U_2$ are i.i.d. $Uniform(0,...
When I do causal mediation analysis in R package mediation::mediate(), I need to print out the standard error of the indirect effect estimate. However, I suppose there is no such output? I have two questions as following, Is there anyway to get the SE based on this function output? The output gives me the CI. And I t...
We know that if $X \sim N_p(\mu,\Sigma)$ then $(X-\mu)^T \Sigma^{-1}(X-\mu) \sim \chi^2_p$, does the converse hold? Is it possible for a non-multivariate Gaussian random variable to satisfy $(X-E(X))^T (cov(X))^{-1}(X-E(X)) \sim \chi^2_p$?
I am learning the weighted majority algorithm in "foundation of machine learning" by Mohri. But I can not understand the conclusion from the book and other reference. It has the statement No deterministic algorithm can achieve a regret $R_T = o(T)$ over all sequences. How can we prove this? The book provide a scenari...
I understand the analytic proof that lasso regularisation tends to shrink coefficients to zero. However, from a practical standpoint, most of those methods are combined with gradient optimisation (like SGD). For this reason, gradient of the loss w.r.t. each parameter is $\lambda\texttt{sign}(w_i)$, where $\lambda$ is t...
An often cited advantage of Structural Equation Modeling (SEM) is that it is able to account for measurement error in the observed indicator variables, therefore allowing for consistent estimates in the presence of error-in-variables (in contrast to standard linear regression). It is not clear to me, however, what type...
I have a dataset where treatment and subject play a role in how the data is behaving. I am fitting a linear model where I am modeling feature abundance as function of both covariates. My aim is to perform comparisons at treatment level while removing the effect of subject on the data. However, in some cases I have some...
I wanted to ask conceptual about what to do with main effects? Assume, I have randomly assigned equal two groups(let's say CBT, Control; N1=25; N2:25). I collected the depression levels at three time points (pre, pos and follow-up). At pre level, using independent sample t-test, groups did not differ each other signifi...
I am working with a dataset of 110.000 rows. Each row only has categorical data, most of which is also nominal. Each of these rows represents an event that has several parameters (again, nominal) and an outcome. The question I'm trying to answer is what combination of parameters gives the best result. In this case, the...
I want to analyze my data related to two different timelines - measuring stress and anxiety in two different time points: time point 1 before meeting dogs, time point 2 after meeting dogs. Then I would compare the data of both time points with each other. What SPSS analysis should I use for this?
As the number of values sampled from the uniform distribution increases, the distribution of the mean tend towards a Gaussian. Why is that?
I am conducting a simulation study to assess the performance of several confidence intervals. My approach is to simulated (N = 10000) datasets, estimate the parameters, construct a confidence interval, and for each simulated path check whether the true parameter is in interval estimate. This results is an empirical cov...
I have been using CNN-LSTM for action recognition with dataset split 70% for training , 20% for validation , 10% for testing and after training , the validation loss and training loss were very close to each other and they were low but the model performed poorly on the test set . I believe it might be because of Data l...
I have a random variable $X$ that follows a Gamma distribution. $$ X \sim \text{Gamma}[\alpha, \beta] $$ I want to know the distribution of $Y$, i.e., $$ Y = a - \exp\left(-b X\right) $$
I got two population estimates a and b calculated each by a random forest regression. Variable c is then subtracted from a and b. As expected, the estimates a-c and b-c show a nice correlation (r = .80). Calculation A: Then, for all features used for the estimation of a, I performed sperate linear regression for each f...
Is there an agreement method that would be well-suited for a data annotation task where: the labels are discrete classes each datapoint belongs to exactly one class (multi-class classification) each datapoint is annotated by 3 or more annotators the labels are very imbalanced, with some labels occurring significantly ...
I am trying to implement Soft Actor-Critic with automatic Entropy tuning. One thing I noticed is that the authors, and also the majority of implementations of SAC use $-\text{dim}(|\mathcal{A}|)$ as entropy target $\bar{\mathcal{H}}$ in the loss function of $\alpha$, and I am confused where this exact value came from. ...
I would like to know whether I can use the graph produced by dotplot(ranef(model)) to judge wether the random effects are significant or not. GMA is my random effect in this case. I have edited out the y axis values, but every line belongs to a crop cultivar. Can I say, based on this plot that, due to overlap with 0, t...
I'm trying to calculate multivariate GARCH estimation of conditional value-at-risk, by adopting a three-step model from Girardi & Ergun (2013) paper entitled "Systemic risk measurement: Multivariate GARCH estimation of CoVaR". I'm using R and up until now I can't find any good references as to how to construct the mode...
Can a Population stability index (PSI) be calculated for the XGBoost splits? When I make a logistic regression with grouped variables, I can make PSI with the groups and see if the population in the groups are shifted to other groups. Can this be done with the XGBoost splits? If it can't, what is the best option to tra...
everyone! Imagine I have a dataset which I'd like to use it to train a churn model (fot example: logistic regression, xgboost binary classifier, lgbm binary classifier, etc.). The structure of my available data is similar to the one below, where Feature1,Feature2,...,FeatureN are just placeholders for the real features...
I am aware that a question very similar to mine has already been asked here (Should AIC be reported on training or test data?), but some points remain unclear to me. The accepted answer states: On the other hand, when the model is evaluated on test data (not the same as the training data), there is no bias to −2ln(L) ...
Q: Let $X_t$ be an ARIMA(1,1,1) process and $Y_t = Y_{t-1} + X_t$. What kind of process is $Y_t$? $X_t$ is an ARIMA(1,1,1), i.e $\nabla X_t = X_t - X_{t-1} = Z_t $ where $Z_t$ is a casual ARMA(1,1) process and satisfies $(1-\phi_1 B)Z_t = (1+\theta_1B)\epsilon_t. $ Since $Z_t$ is casual, we may write $Z_t = \frac{1 + ...
I have a medical data set with missing data in few variables. But on carefully observing, missingness of some variables are dependent on the response of another variable. For example, "age at when become pregnant" has missing data. But many of them are missing / not entered as this question does not make sense for male...
assume I have time series count data that come from a zero inflated poisson distribution (ZIGP). My idea was to estimate a ZIGP-Regression with including AR-features (lagged values) among other features. However, in https://timeseriesreasoning.com/contents/generalized-linear-regression-models/#:~:text=Therefore%20GLMs%...
I'm interested in developing a set of clusters pertaining to shopping habits using a dataset from a survey that a colleague recently fielded. The survey contains a wide array of topics--some related to shopping habits, some not. There's a pretty big set of demographic items as well (race, gender, political affiliation,...
My aim is to determine whether teacher salaries in all 50 of the United States over between 2013 and 2023—adjusted for inflation and the cost of living—differ significantly. I would like to ask what the wisest approach might be to modify unadjusted teacher salary averages (there is one average for each state) to accoun...
I have just started learning fitting arima model for time series. So I am not very sure what AR and MA order I should use. May I know what are some possible arima models for the following ACF and PACF plot?
Please consider the Table below Item Sample Mean Sample count, n Sample Standard Deviation Standard Error SD/sqrt(n) Unit A 95.9461 PSI n=430 3.8397 0.185166776 Unit B 94.488 PSI n=25 2.5344 0.50688 Now when I want to show if these two tests are significantly different from each other. $$ \frac{94.488 ...
I am reading Bai and Ng (2002). In their proof of Corollary 1, they said “Next, consider k > r. Lemma 4 implies that $V(k)/V(r)=1 + O_p(C_{NT}^{-2})$”. However, Lemma 4 just states that $V(k)-V(r)=O_p(C_{NT}^{-2})$. Is there something wrong? As a counterexample, if $V(k)\sim C_{NT}^{-2}$ and $V(r) \sim C_{NT}^{-3}$, th...
I generated binomial data showing a logistic correlation to a predictor. I analysed such dataset with a generalised linear model which assumes a binomial distribution of residuals and a "logit" link function, but the residuals of such a model still fail to respect the model assumptions: the quantile-quantile plot shows...
I'm interested in training a Random Forrest model to predict conditional quantiles (e.g., P75, P90) given the features instead of the conditional mean. Sklearn's RandomForestRegression has a mean absolute error (MAE) loss which build trees by using the median of each the terminal nodes, thus minimizing MAE - naturally,...
Let's say we run a model with a three-way interaction that includes a quadratic term with its associated linear term: library(emmeans) library(ggplot2) library(tidyverse) car_data <- mtcars[,c("mpg" , "vs" , "am" , "disp")] car_data$vs <- as.factor(car_data$vs) car_data$am <- as.factor(car_data$am) model <- lm(mpg ~ ...
I have a data set in which my dependent variable is a score that can vary between 8 and 400. set.seed(2023) n <- 50 v <- rexp(n, .01) obs <- mean(v) I'd like to calculate if the effect I observe obs is larger than expected by chance. I understand that I need to build a null distribution. I tried set.seed(2023) prms <-...
I had used the GPT chat to ask some straightforward questions. However, one of the responses left me feeling quite confused. Currently, I am studying the classical regression model given by $$y_t = x_t\beta + u_t,$$ where $t = 1,...,T$ and $x_t$ is a deterministic (fixed) variable. As a result, I requested GPT to gener...
I'm trying to learn on my own about confidence intervals for multinomial proportions, and I stumbled upon several resources on the subject talking about various methods (e.g. Goodman, or Sison-Glaz) . Yet, the resources I found are mathematically dense, and without guidance I'm afraid I have a hard time understanding h...
Lets say I have $n$ observations of $Y$, $X_1$, and $X_2$. All three are normalized (mean 0, variance 1). I run two regressions: $Y=\beta_1X_1$ $Y=\beta_2X_2$ Given these $n$ observations, is it possible for $\beta_1 > \beta_2$, but $tstat(\beta_1) < tstat(\beta_2)$ or for $\beta_1 < \beta_2$, but $tstat(\beta_1) > t...
Consider the classic regression setting where we want to model Y using some design matrix X. However, let's say that part of the design matrix is a matrix of familial relationships up to some degree of relatedness. For example, let's say there are Z families in the dataset, with many individuals belonging to a single-p...
Let $X$ be a symmetric random variable with bounded moments and standard deviation $\sigma$. I want to lower-bound $\mathbb E[|X|]$ in terms of $\sigma$. Here is the formal conjecture; I wonder if this is true or could be refuted: There exists a global constant $C$ such that for every symmetric r.v. $X$ with bounded mo...
I'm analyzing quality of governance on food security indicators for the last 3 years for 74 countries. To be precise, I am interested in a within-country variation across time (before and during the Covid-19 pandemic), as well as the between-country variation. This choice was informed by Bell et. al.’s (2019) article. ...
I've got a logistic model where the annual change for each subject is of interest. Regression, easy. Generate estimated marginal trend for each subject, easy. Now, I have a set of what I presume to be trends expressed as log-OR. How do I translate those into something easier to understand, like "percent change per year...
Given two groups of subjects (A & B) tested at multiple timepoints (A-T1, A-T2, A-T3 / B-T1, B-T2), with each subject tested multiple times at each timepoint - how can one build a single model to 1. Test if at specific timepoint (i.e. A-T2) group A is different from overall group B and 2. Test if there is a difference ...
Can someone help me understand how exchangeability works for Latent Dirichlet Allocation (LDA) and how it enables us to treat words in the test set that are not present in the training set? I know that LDA is by nature an exchangeable model, and I know the basic definition of exchangeability and how probability does no...
Let $(X_i)$ be iid from a distribution proportional to $x^{\theta}1_{(0,1)}(x)$. a) Find the most powerful test of size $\alpha$ of $H_0: \theta=0$ against $H_1: \theta=1$. b) Find the UMP test of size $\alpha$ of $H_0: \theta=0$ against $H_1: \theta>0$. I have solved part a) it turns out the critical region is $\{...
As part of a proof, I need to take the first derivative of the log of the following multivariate normal density: $(2\pi)^{-k/2} |\Sigma|^{-1/2} \exp\left(\frac{-1}{2} x'\Sigma^{-1}x\right)$. In this case, the mean is zero and $\Sigma$ has an exchangeable correlation structure, thus $\Sigma = D A(\rho)D$, where $D$ is a...
Is there a website with a calculator to input 2 sets of data to perform the post paired t test adjusted with the Bonferroni correction? Or is anyone available to hire?
An interesting statistical curiosity I like is the following: Suppose you have 3 non-random variables X, Y and Z. Suppose that univariately X & Y can explain 2% and 5% of the variation in Z respectively. The theoretical upper bound of how much of the variance you can explain in Z in a multivariate regression with X & Y...
My question come across from this post: How to know that your machine learning problem is hopeless? Is there any mathmatical or statistical way to prove that my machine learning problem is hopeless? I have a project which tries to predict binary classes (0 and 1). However, I try the several models (some DL and classica...
I am learning about the estimation of fractional response models (those with a lower and upper bound, say 0 to 1), using Stata. I came across this example on the Stata page, which I'm copy-pasting below for simplicity. I have 3 questions regarding the interpretation of coefficients, and any help is much appreciated. "W...
I know there are linear correlation measures such as Pearson that might not capture all cases of statistical dependence or nonlinear correlations. I know there are also nonlinear correlations, which can be measured by distance correlation or mutual information. Then there's the idea of dependence and association " ass...
I am doing a simple Linear Regression (with intercept) which ends up presenting a negative R2, this should not be possible (cf comment 2 at the end) Reproducible examples of the issue: Minimal sklearn reproducible code: import numpy as np; print(np.__version__) # 1.23.5 import scipy; print(scipy.__version__) # 1.10.0 ...
I have read about use of centering an explanatory variable in regression analysis on the mean (through demeaning) when there is presence of multicollinearity. I have applied this for a binary explanatory variable that takes only 0,1 values. Is there a valid way to demean an explanatory variable that is categorical?
I have to compare two subgroups from the same population. The two groups have partially the same records, so they are overlapping subsets of the same dataset. Can I consider them as two independent groups and consequentially run analyses for independent groups?
Suppose $Y \in \{0, 1\}$ is a response variable and $X = (X_1, \cdots, X_p)$ are covariates with $X_j \in \{0, 1\}$ for each $j = 1, \cdots, p$. In the Naive Bayes model, we assume conditional independence of the covariates given the class label, so that $$p_{\theta}(y = 1 \mid x) = \frac{\prod_{j=1}^p p_{\theta}(x_j \...
Is there a generic way of generating prediction (not confidence) intervals for any machine learning model? For example, instead of one single point forecast y_hat, could I use the residuals from cross validation and calculate the 25th and 75th percentiles (i.e. Q1 and Q3) and let lower_bound = y_hat + Q1 and upper_boun...
I am attempting to calculate a 95% prediction interval from an adaptive lasso model using the glmnet:: package in R. I adapted my method from the Python code in this blog post. Essentially it boils down to bootstrapping the training data, and then getting a distribution of model variance, model bias, and sampling erro...
I am running a binomial logistic regression with a dependent variable is 0/1 and the explanatory variables are categorical - binary and multiple categories. When I add an interaction term, and run a VIF test for presence of multicollinearity, several of the coefficients of predictor variables take a VIF value of 5 or g...
I am looking for the best optimizer for a multiclass classification problem, because my results aren't very good and I am pretty sure the optimizer is the problem. Also, a good learning rate for an optimizer or a learning rate schedule would also be appreciated. I tried google search but it didn't give me optimizers. T...
I am trying to teach myself more about the mathematical background, properties and theory involved with calculating different types of "weighted mean estimators" - specifically, if I have sample means from different experiments, how can I combine these sample means together and create an estimate of the "mean of means"...
I have data that I am trying to analyse, but am not entirely sure if I am doing the right steps. It is a mixed design where every participant experienced condition A, then they were randomly assigned to condition B or C. Condition A: within-subjects Condition B & C: between-subjects (randomly assigned) Each condition...
I'm trying to reproduce results in this protocol with OncoBayes2 package to learn BLRM with EWOC (Neuenschwander 2008) in dose finding studies. In section 14.2.2.1 (appendix 2) of the protocol it gives the prior median, sd and correlation of log alpha and log beta as mean: -3.068,0.564 sd: 2.706,0.728 corr: -0.817. The...
I'll try to keep this short. I am using the R fixest package. I have the following regression that I've simplified for the example: feols(y ~ x1 + i(x1, x2, "reference") | x2 ~ instrument, data = myData) Basically, I am running a 2SLS, where I am using "instrument" as an instrument for one of my variables, x2, but I al...
I have been told both things with regard to e.g. summing noisy time series, to justify opposing expectations. On the one hand, I have been told to expect that summing multiple noisy inputs should lead to noise reduction for the output (the sum), because the noise components average to zero. I imagine this explains why ...
I have the dataset: df <- data.frame( station = rep(c("A", "B", "C", "D"), each = 20), vla = rpois(80,2), latitude = c(rep(40.7128, 20), rep(34.0522, 20), rep(41.8781, 20), rep(39.9526, 20)), longitude = c(rep(-74.0060, 20), rep(-118.2437, 20), rep(-87.6298, 20), rep(-75.1652, 20)) ) years <- rep(1979:1998, le...
I have an experiment where groups received either one of two treatments over several rounds, and I observe whether an outcome happens for a group at any given round. The outcome is thus binary, it either happens or not. I would like to test the hypothesis that the outcome happens more frequently under treatment 1 than ...
I am new to SEM. My aim is to determine which factors (several intrisic and serveral extrinsic) influence school participation in children with disabilities. Some of my latent variables are scores to quetionnaires, which have a lot of items (around 70 - 80). These items are divided into subscales. I wanted to know if ...