instruction
stringlengths
9
38.7k
I am building a logistic regression of TREATED (yes/no) and BLOODLOSS_PERCENT (continuous, skewed right). I have also built a multivariate logistic regression to control for possible confounders, but the issue is the same. I am getting an odds ratio for BLOODLOSS_PERCENT to be 50000+. Looking at the effect plot and the...
Question: Is it possible to write a mathematical expression for the standard errors of the fixed effect coefficients from an mixed-effects model in terms of model parameters, and not matrix operations? Motivation I want to analyze (simulated) data from a cluster randomized (10 schools in this case) experiment with repe...
Of course there are many natural cubic spline bases, but reading through documentation (mgcv, splines in R and patsy, scipy.interpolate and csaps in Python) sheds no light on which ones are used in practice (in particular, for penalized spline regression). So, does anyone know? i.e. is anyone able to give an explicit f...
I want to know how to look for effects both at a population level, and at an individual level in an experiment. I was wondering if I can do this with hierarchical Bayesian models as follows. In a simplified problem, I measure from a population of individuals across 2 conditions. I also do repeated measurements in both ...
I have a set of $2,142$ measurements of some value that are grouped into $18$ bins of equal length (according to the value measured). I want to check the resulting distribution for uniformity. As far as I understand, the standard procedure for this is using the $\chi^2$ test. So I used the formula (took it from wiki), ...
Is it correct to do SVD from the latent space of an autoencoder? I am asking because I think that by performing SVD from a latent space, and plotting the singular values, it is possible to know the dimension of the data. Example: let's say that we have a reaction-diffusion system which is a one-dimensional manifold. Th...
I want to conduct a power simulation for my research with crossed random effects model in the R environment. Specifically, in the pilot study, each participant randomly rates 10 stimuli out of a stimulus pool consisting of 100 stimuli. Each stimulus has 20 random raters. I fit a linear mixed effects model with random i...
I'd love to get a sanity check on a sample size calculation I'm running in G*Power. I'm planning a study with 2 groups and 2 measurement points, aiming for a f of 0.10 because, to my understanding, it's equivalent to a Cohen's D of 0.20. The correlation between the outcome at baseline and at follow-up is 0.75, so I ent...
Suppose we want to conduct a poll among a sample from the population. I know that increasing a sample size generally improves the precision of the results, but I was wondering whether given fixed sample size, population also affects the precision. For example, there are two polls conducted: Poll 1, a sample size of 10...
I have a series of contingency tables that are my population benchmarks and survey data. Practically speaking, we know the population benchmarks are largely, but not entirely, accurate; there are some biases in data collection and modeling. We have run several surveys and collected data along the same variables as the ...
Suppose I have two distinct outcomes being tracked over time, A and B. An individual observation can have outcome A, outcome B, both (call it AB), or neither. If the rate of outcomes A and B are both increasing over time, and the rate of outcome AB is increasing over time as well, it is plausible that the increasing ra...
I want to assess the effect of a treatment (control vs. ash) on a continuous variable (e.g. calcium concentrations). I have two additional grouping variables that are also both categorical: location (3 levels) and layer (4 levels). I will run post-hoc tests to determine differences (if any) between locations, and diffe...
I'm trying to calculate the correlation of specific locations (I have latitude and longitude data) to specific numerical values I have. Does anyone know any particular methods to do this? I have calculated correlations before but not involving point data or latitude and longitude data.
I'm attempting to fit an xgboost model to some data. During training I'm seeing the RMSE for the validation set very quickly decrease, and then become basically static. The Validation performance is pretty poor and doesnt look to be converging. I'm not sure how to interpret this at all really. I've tuned the hyperpara...
what are the statistical methods used in prospective cohort studies,What should I do if I have data?
Let $P_{XYZ}$ be the joint distribution of discrete RVs $X,Y,Z$ where $Z$ is binary-valued. Let $Q_{XY}=P_{XY|Z=0}$, i.e. the distribution of $XY$ conditioned on $Z=0$. Are there lower/upper bounds on $H(X|Y)_P$ in terms of $H(X|Y)_Q$ and the probability $P[Z=0]$? (Mainly I would need an upper bound, but I would also b...
I've noticed a discrepancy in the SEs of the fixed effect estimates given by the nlme::lme function. Specifically, the SEs in the summary output differ from the square root of the diagonal entries of the estimated variance-covariance matrix . Here is an example: library(nlme) fit=lme(Yield~Time+Variety,Alfalfa,random=...
Is there a way to express random variable with the following CDF $g(x)$, $x\ge 0$, in terms of known named distributions? $$g(x)\propto \psi ^{(1)}\left(x^{-\frac{1}{2}}\right)$$ where $\psi^{(k)}$ is the polygamma function. This distribution arises when sampling numbers $1,\frac{1}{4},\frac{1}{9},\frac{1}{16},\ldots$ ...
I have physical examination data from 2010 to 2020 for a region, but not all individuals have data for the entire 11-year period. For example, some people only participated in 5 physical examinations between 2010 and 2020. Additionally, frailty diagnosis data is available for the year 2020. Therefore, I have a dataset ...
I am trying to estimate the interaction term from a glmer model as a marginal probability contrast using emmeans. I can calculate the difference in differences marginal probability, but I was assuming that given the interaction term in the regression model was significant, the corresponding emmeans estimate would also ...
I consider fitting cubic splines in R. Question: How can I include covariates in my spline model? The first few lines of my toy dataset are as follows > library(ISLR) # contains "Wage" dataset > head(Wage) year age maritl race education 231655 2006 18 1. Never Married 1. White 1. < HS G...
I'm working on learning more about mixed models. So I've been trying to teach myself each mixed model that I can find and how to interpret it. So long I've made this table and I thought it might be useful for other people learning about mixed models: Model Type Sample Type Computational Cost Random Effects Fixed Ef...
What is the training and inference time complexity of Bayesian Ridge Regression (e.g. as implemented in sklearn) in terms of the number of samples n and the number of features d?
i have few frequency distributions of categorical data. for example sample 1: [item1: 9 times, item2: 10times, item3: 17 times, item4:20 times, item 6: 3] sample 2: [item1: 17 times, item2: 18times, item3: 3 times, item4:7 times, item 7: 1] sample 3: [item1: 50 times, item2: 50times, item3: 5 times, item4:7 times. i...
I'm currently working with longitudinal data and I wanted to compare school and residential segregation (natives vs minorities) over time and across specific territorial sub-units (NUTS 3 level). The idea is to compute dissimilarity (D) and exposure (E) indices in each territorial unit using schools as obs. But I've no...
I'm working on a project in computational solid state physics where I have to find the curvature of a smooth function $f \ : [0,\infty] \rightarrow \mathbb{R}$ around the minimum point $x_0 = 0$. The curvature is defined here as the second-order coefficient $a$ in the Taylor expansion $f(x) \approx f(0) + \frac{1}{2} a...
I am looking at the accuracy percentage that has a distribution with several $100%$ values. These are true $100%$ values since most people have high accuracy in some conditions. Here is the distribution of the variable: I want to model the accuracy as the outcome variable with Condition (condition 1, condition 2 and c...
I have three clusters of patients, and for each patient I have 189 binary variables which are diagnosis codes (0 indicates the patient doesn't have the diagnosis and 1 otherwise) I want to perform comparisons between the three group and to examine if there are variables with significant difference scores between groups...
In a paper I am reading, the following result is used. If $(\mathcal{X},\mathcal{F}) $ is a measurable space, $\mathcal{G}$ is a class of functions with elements $f : \mathcal{X} \to \mathbb{R}$. We assume $\mathcal{G}$ is a bounded metric space. Then I wish to show that if $$ \int_{0}^R\sqrt{H_B(u,\mathcal{G},L_2(P))...
I have been given a dataset involving participants (ID) at different sites who were randomly allocated to one of two conditions. So there are several sites in one condition and other sites in the other condition (think this is a cluster-RCT). The participants were assessed for a continuous outcome at three timepoints (...
The model I want to visualize is this one: BZ ~ 1 + SV_DMW + SV_DIFF (1 + SV_DMW| VPN) Do you have any ideas how to do this best? This is how I visualized the model, where just SV_DMW was included. The single lines are 5 random chosen subjects (VPN). Do you have any idea how to visualize the model shown above similarl...
I have been reviewing documentation here on exponential moving averages. I am having a hard time being able to analytically move between the definition of an exponential moving average specified in terms of its alpha decay factor and specifying decay in terms of half-life and span. Is someone able to provide a derivati...
The lasso coefficients are the ones that minimize $RSS+\lambda \Sigma_{j=1}^{p} |\beta_j|$ whereas the ridge regression coefficients those that minimize $RSS+\lambda \Sigma_{j=1}^{p} \beta_j^2$. I don't quite see from these mathematical expressions alone why lasso will shrink some coefficients to be exactly zero, while...
I have a question about the economic interpretation of Poisson regression. What is the economic interpretation of the coefficient when the dependent variable is a count variable? For example, for "Patent Count = a + b × R&D investment + c", what does 1-unit increase in R&D investment mean for Patnet Count? I know that ...
Let’s assume the following: I have data of 100 subjects each performing 100 trials of a reaction time task At each trial, I measured the reaction time (RT) and a specific brain signal (BS) The RT and S data of each subject are Gaussian distributed Both RTs and BSs vary from trial to trial, but also from subject to su...
My question is relative to the comparison of a probability of surviving at a fixed point in time with a theorical probability of surviving. For example, I have a cohort of patients with cancer followed during 3 years (some of them dropped out). I am interested in the probability of being alive at 2 years. This probabil...
I'm implementing a multilevel logistic regression model in R to predict a binary courtroom decision with 8 categorical and 7 numerical predictors. I believe a multilevel model to be appropriate because each observation (defendant) is nested within judges. There are a few questions I have that I can't seem to find discr...
I am working on the estimation assessing the impact of exposure to infrastructure (mainly schooling) on the number of children. Since I do not have migration data, my colleague recommended that I aggregate the outcome at the level of distrcit to alleviate potential selection issues. I asked her how this works and she t...
I am seeking your advice on regression models using experimental (panel) data. I have around 230 individuals who have participated in four rounds of an experiment. The dependent variable is categorical (which complicates the analysis - simply OLS with clustered standard errors at the individual level cannot be used), w...
If we select a model to our data of a kind other than linear i.e instead of the linear model y = ax + b we use y = ax^2 + bx + c And use the same standard process of finding coefficients (least squares) should we be able to predict the best parameters a, b and c ? In the section for Linear Regression in Wikipedia, in ...
Suppose you conducted an A/B test in which customers were randomized using the hashing technique (Kohavi et al., 2007 etc.). We can thus expect the control and treatment group to have approximately equal number of customers. In our database, we have a list of tuples (variant_id, customer_number, amount_of_purchase), wh...
I have some experimental ice polarization data, and simulated the polarizations of possible size/shape particles that could be present in the system. I want to use my polarization data to quantitatively narrow down which shapes are impossible. Ideally, there would be a number like R^2 that compares the curve to the dat...
Given a random variable $Y \sim D$ and a linear transform $g(Y) = a + bY$, we define a new random variable $W = g(Y)$. The probability density of $W$ is $f_{W}(w) = \cfrac{1}{b}f_{Y}(\cfrac{w-a}{b})$. However, I am interested in the conditional distribution $f_{W|Y}$. How do I go about finding this? Thanks!
Let's say I have two independent random variables $X$, $Y$. Let's define a new random variable $Z = XY$. I know that the distribution of $Z$ follows: $f_{Z}(z) = \int_{- \infty}^{\infty}f_{X}(x)f_{Y}(z/x)\cfrac{1}{|x|}$. Is it possible to derive the algebraic expression for $f_{Z|Y}$ in terms of $f_{Z}$, $f_{X}$, and/o...
I am running a binary logistic regression in SPSS. My sample size is 906, but the event of interest is only observed 66 times (so ~7% of the sample). I read several threads on this site and posts from Dr. Frank Harrell about rare event logistic regression, but still have a few questions. The overall model of my regress...
I fit a negative binomial GAM model with the R mgcv package. I noticed some heteroskedasticity in the fitted vs response plots. Then I noticed that if I log transform the dependent variable before fitting the model, it becomes far better in terms of the fitted vs response values: it does not show any heteroskedasticity...
In a conference, I overheard a casual discussion about testing goodness of fit (GOF). Kolmogorov-Smirnov, Cramer-von Mises and Anderson-Darling were mentioned as some established GOF tests, but then one researcher said that some new, higher-power tests have recently been developed. He could not recall any titles, but h...
I used quantile regression for my research. My variables were significant but my pseudo r was low. So I tested for cointegration. All my variables are I(1) and when I run the models with raw (nonstationary) data, the residuals are stationary at level. I believe this means my variables are cointegrated. What should I do...
I have a real matrix whose two largest eigenvalues are two conjugate complex numbers. I need to check if their absolute value is greater than 1. Since the largest by absolute value eigenvalue is complex, the power method, and any other method that can only output real eigenvalues, doesn't apply. I looked into using num...
I want to fit the model $$Y_{it} = \beta_0 + \beta_1 x_i + u_i + \epsilon_{it},$$ where $u_i$ are iid $N(0,\sigma_u^2)$, $\epsilon_{i0}\sim N\left(0, \frac{\sigma^2}{1-\gamma^2} \right)$, and $$ \epsilon_{it}=\gamma \epsilon_{i,t-1}+\delta_{it}$$ for $t>1$ with $\delta_{it}$ iid $N(0,\sigma^2)$. In other words, the pro...
I'm building a NN using keras and I'd like to build different architectures. My question: Can I create several models with a different number of layers at once? (e.g. using a loop). It should be something like: for (i in 1:10) create i models with i number of layers. I would like to know if something like this is gener...
I am using pyod to detect outliers in data, and I came across this official example: https://github.com/yzhao062/pyod/blob/master/examples/comb_example.py I have a question regarding the need to split the data into X_train, X_test, y_train, y_test when detecting outliers. What is the purpose of this data split? I thoug...
I have target vector that encompasses 50 imbalanced classes. I have a feature matrix that encompasses 25 different features. I have a trained tree model and have limited test set data. What I want to do is: For every y-class, generate a top-k set of input data such that if I used that exact set, the model would yield ...
Suppose I have a statistical model with observed random variables $X_1, \ldots, X_m$ and Bayesian parameters $\theta_1, \ldots, \theta_n$ that are identifiable. Now I want to extend my model by including an observed and non-degenerate random variable $Y$ and parameters $\alpha_1, \ldots, \alpha_n$ in the form $$Y = \su...
I have two binary variables, naturally dichotomous, yes no They present information on whether a college has multi-stream recycling or single-stream recycling. I did Pearson's product-moment correlation as I read in a research paper that naturally dichotomous variables can be used in Pearson's correlation. I also did P...
The following remark is from Asymptotically Normal and Efficient Estimation of Covariate-Adjusted Gaussian Graphical Model by Chen et al. 2016: Here, $X$ is a design matrix with iid rows and $X^{(1)}$ the first row. The above implies that a vector $X^{(1)}$ with bounded entries such that $|X^{(1)}_j| < B$ is not neces...
We know that in transformer architecture, we first compute $Q,K$ and $V$ matrices from the token embeddings. Then we compute the attention weights $\alpha$ as $$\alpha = Softmax(QK^T)$$ In the case of masked attention, we can use additive mask as follows $$\alpha = Softmax(QK^T+UTMask)$$ where $UTMask$ is a strict uppe...
I'm trying to conduct a non-linear least squares via the nls function. The right-hand side (non-linear) function is as follows: $-7 \ sigmoid(\theta_1 - x\beta) - 3 \ sigmoid(\theta_2 -x\beta) - 4 \ sigmoid(\theta_3-x\beta) + 7,$ where $\theta_1,\theta_2,\theta_3,\beta$ are the unknown parameters to be estimated, while...
[The background] I have a category variable called group, which has five levels indicating the types of populations (g1, g2, g3, g4 and g5). I wanted to know the effect of group on the outcome variable score, while other factors such as gender, age, IQ and site were included as covariates (i.e., the influence of these ...
Suppose I have a physical experiment which involves repeatedly testing objects until one fails. I have a mathematical model for the mean time to failure and I would like to carry out an experiment to see if it is accurate. Unfortunately it takes so long for an object to fail (if it fails at all) that I can only afford...
In support vector regression (SVR), I know that many different linear basis expansions for the predictors can be used. I am interested in a basis expansion that is as algebraically short as possible for use in an algebraic modelling optimizer. To show examples of the non-linearity of the response, I have generated the ...
I have a linear regression model, a XGBoost model, and a MLP model that I've developed for a dataset that predicts a binary match outcome using sckit. I want to set a rule on my model where certain data row entries that I've flagged have a heavier effect towards my model improvement, according to a weighing processes d...
Let's there are 2 groups of user. Based on their query I return some search results to them (p1,p2,p3). The search results could vary based on either the group that user belongs to or some user specific parameter. I want to measure, whether the search results to the users are significantly different to each other or no...
Hello I'm currently doing data analysis of my study in R. I'm having trouble with finding the right way to go about it though. Snippet of my data: tibble [42 × 5] (S3: tbl_df/tbl/data.frame) $ FP_Nummer: int [1:42] 4 4 4 4 4 4 7 7 7 7 ... $ Koen : Factor w/ 3 levels "","K","M": 3 3 3 3 3 3 3 3 3 3 ... $ maaling ...
Airplane parts and functions Can Machine Learning and Artificial intelligence Algorithms assist in identifying and classifying Airplane images parts?
I am trying to interpret the ACF plot of a 3 state HMM model but as it is my first time dealing with any kind of HMM it is causing a lot of trouble. I have also had a hard time finding a ressource on the subject of ACF plots. From my understanding we are trying to 'counteract' some autocorrelation that is present in th...
The question I'm stuck on states to prove that if $X_{(1)}$ is exponentially distributed, then so is $X_1$, where $X_1,\dots,X_n$ is a sample of i.i.d. random variables and $X_{(1)}\leq\dots\leq X_{(n)}$ are the sample's order statistics. From this answer, $F_{X_{(1)}}(x) = \sum_{i=1}^{n}{n\choose i}F_{X_1}(x)^i[1 - F_...
I am working on implementing linear regression with regularization, and I'm trying to understand how to decide the appropriate regularization term to use. Specifically, I would like to know why in ridge regularization, the term used is W^2. From my understanding, regularization helps prevent overfitting by adding a pen...
I was wondering if the logit-normal distribution is uniquely defined by its first two moments; I believe this to be the case as the logit-normal distribution is simply the logit transform of a normal random variable, which is uniquely defined by its first two moments. Furthermore, a reference would be useful. Thank you...
How to measure the percentage of the total effect that occurs through the indirect effects (i.e.,5.1%, 18.8%) and direct effect (i.e., 76.0%)? For below figure, In this figure, HFT is the independent variable, Liquidity comovement is the dependent variable, Liquidity and Volitality are the mediator variables. Accordin...
First up, apologies that this probably a dumb question. I am switching careers and just getting started in trying to understand statistical significance in A/B testing. I've come into issues quickly in identifying the right statistical test. I am trying to calculate statistical significance across a variety of KPIs wit...
I have started working on mediation analysis, but I am still confusing how to deal with covariates. Here are my models (X, predictor; M, mediator; Y, outcome; all are linear regression models). Path 1: M ~ X + sex + age at death + education Path 2: Y ~ M + sex + race + SES Path 3: Y ~ X + M + sex + race + SES I am plan...
I am running a GLMM using the glmer function from the lme4 package in R. I would like to use a Helmert contrast to test a specific difference for the factor condition. If I run that in the glmer function, that works well: contrasts(data_all$condition_f) = contr.helmert(3) model_vector <- glmer(cbind(normCor, normIncor...
I have a dataset that contains the number of devices used to express casual relations in a text. I've constructed a Negative Binomial Regression to estimate the effect of Educational Level (3 levels) on the number of casual devices. However, I need to control for the fact that each text has different amount of words. I...
I have an $n \times m$ matrix, where each row $\mathbf{v}_i$, for $i \in \{1, \ldots , n\}$, consists of some permutation of the set $\{1, \ldots, m\}$ (and so in particular, each $\mathbf{v}_{i, j} \in \{1, \ldots , m\}$). Let's say that some subset of the $n$ vectors are of "type $A$", and the remaining vectors are o...
I am trying to run a binary logistic regression that predicts the probability of infection based on a series of categorical predictor variables, and one continuous variable. Here is the structure: 'data.frame': 327 obs. of 8 variables: $ District : Factor w/ 7 levels "10th of Ramadan city",..: 7 7 7 7 7 ...
I'm building a keras model for a binary classification. model <- keras_model_sequential() model %>% layer_dense(units=32,activation="relu",input_shape=10) %>% layer_dense(units=16,activation="relu") %>% layer_dense(units = 1, activation = 'sigmoid') Since my input matrix consists of 10 columns, I chose the...
Let us consider a signal assumed as in the paper by Rosso et al., i.e. given by the sampled values $S=\left\{s_0(n), n=1, \ldots, M\right\}$, corresponding to a uniform time grid with sampling time $t_{\mathrm{s}}$. For simplicity, the sampling rate is taken as $t_{\mathrm{s}}=1$. The wavelet expansion will be: $$S(t)=...
When the characteristic polynomial of a moving average s model is given as $(1 − 1.4x + 0.3x^2 )(1 + 0.5x^{12})$, how to obtain the MA model and then calculate the ACF of this model? I am expecting an explanation of how to solve this type of problem.
I have clinical data which lacks a golden standard for diagnosis. instead multiple indices are used with different accuracy. I have transformed the results from these indices to binary for with patient having and not having the disease. This is then used for latent classification analysis. I want to know if i should us...
I am considering methods of selecting an optimal K Nearest Neighbors model for classifying a pixel as representing a refugee's blue tarp or not. See https://www.kaggle.com/datasets/billbasener/pixel-values-from-images-over-haiti . The data set has 63,241 observations. I have normalized intensities of red, green, and bl...
I want to fit a model to some data using structural time series modeling and Kalman filtering. The hyperparameters need to be tuned using maximum likelihood estimation. I am using the Python package statsmodels that does this for me, but nowhere I need to put in which distribution I assume my model follows. Does it aut...
I have to manually create basis functions for a variable but SAS doesn't seem to have a procedure to do it. I am using Frank Harrell's macro RCSPLINE but the basis variables are not identical to those created by SAS. It seems like SAS is dividing the second basis by 4 and the last one by 4.5. Not sure where these nu...
I have a dataset which is a electronic bus charger station, data include: voltage current and power consumption. There is no time rule in the use of charging piles, but I want to predict the power consumption of charging piles. Traditional transformer is based on time series, and the data needs to have obvious time cha...
I'm trying to conduct a meta-analysis on correlation using Spearman's disattenuation formula: rx'y' = rxy/sqrt(rxx*ryy). Can composite reliability (CR) instead of Cronbach's α be used in this formula? Since some studies only reported CR instead of Cronbach's α. Or can CR be transferred to Cronbach's α? I searched it on...
We consider the residuals $\varepsilon_i$ as random variables drawn independently from some distribution with mean zero. In other words, for each value of $x$, the corresponding value of $y$ is generated as a mean response $\alpha + \beta x$ plus an additional random variable $\varepsilon$ called the error term, equal...
If I have n participants in a two-player-game league, whose initial ratings are unknown, is there a good heuristic for how many games/comparisons/pair-faceoffs are required to achieve an accurate rating with the Elo rating system? How does it scale with tens, hundreds or even thousands of participants?
for my master thesis work I have to analyze some brain PETs of patients affected by gliomas. Basically the problem is: I have a 3D scale of gray image of the brain. The tumor zone is an high-intensity one and so is white. I would like to segmentate the tumor region. The problem is that also another anatomical region is...
We're trying to see the effects of treatments on the download speed of mobile data in 4 locations, with three variables: SIMs, Locations, and Time. SIMs has 2 factor levels, Locations has 4 factor levels, and Time has 2 factor levels. SIMs' factor levels are the network providers' SIM cards we used: Globe and Smart. F...
Let $T_i$ and $c_i$ be a test statistic and critical value, respectively, for testing hypothesis $H_i$, $i = 1,2,\dots, n$. Assume a Type-1 error rate of $\alpha$ for each test. The family-wise error rate is given by $$\textit{FWER} :=P\left(\bigcup_{i=1}^n\{T_i>c_i\}\right).$$ If the events $\{T_i\leq c_i\}$, $i=1,2,\...
A rare bird recently turned up in the UK. The length of the bird's beak was measured (41.9mm). I want to check that the bird is likely to derive from the North American population of the species. To do this, I calculated the mean and standard deviation beak length of 30 North American individuals of the species. To che...
Suppose we are building a CNN model. After we do 5-fold cross-validation and examine the accuracies and other statistical tests, how do we choose the final weights of the model? Should we choose the one with the highest test accuracy? Or should we combine them somehow? Or just re-run the model once again with our test ...
It is mentioned here that qnorm(k (in decimal form), mean = μ, sd = σ, lower.tail=TRUE) finds the x-value that separates the bottom k% of the values from a distribution with mean μ and standard deviation σ. So does that bottom k% also include the probability value associated with the x-value given by the qnorm() functi...
Assume that $y=(y_1 ,\ldots ,y_n)$, $y_i >0$. The Box-Cox transformation is $$y(\lambda ) :=\begin{cases}\frac{y^\lambda-1}{\lambda}&\lambda \neq 0\cr \ln y&\lambda =0\end{cases}.$$ In Box-Cox transformation, it is assumed that $y(\lambda )\sim N(X\beta ,\sigma^2 I_n)$, where $X$ is the design matrix, $y$ is the raw da...
say i measured the same subjects, in two different times: I measured for PB variable: which is binary: "yes", "no". and measured their willingness to save money: which is "continuous" (Likert-scale 1 to 5, actually not continues but I will regard it as like that). what model can i use, to predict willingness to save mo...
I ran a psychology experiment where participants categorized a target word into one of two categories (living thing or non-living thing?) by pressing one of two buttons, where the outcome of interest is the time it takes them to respond correctly. The target was preceded by a prime word that was either an English word ...
Suppose that we have an $i.i.d$ sample, $\{Y_i,X_i\}_{i=1}^N$, and a correctly specified conditional density of $Y$ given $X$, $f(Y|X; \theta)$, where $\theta$ is the parameters of the density. Then, the MLE theory show that the true value of the parameters, $\theta_0$, maximize the expected value, $\mathbb{E}\left[f(Y...
I am trying to include the weight derived from Inverse Probability of Treatment Weighting (IPTW) into a structural equation model (SEM). However, it is unclear how it should be incorporated into the model and how lavaan's sem() function will compute the outcome.
[Closed, see comments] I was reading through this paper on recent advances in diff-in-diff and got stuck with a (probably very simple) issue when trying to derive the final population estimand. In more detail, I'm trying to go step-by-step from this expression: To the population estimand: I've made a few steps, becau...
We have a dataset in the form of a time series $Y_n$. We assume it follows an underlying parametric distribution $f(n,\beta)$, $\beta$ being the parameters. From the observed dataset, we get an estimator $\tilde{\beta}$ for the parameters (say from an MLE). I am interested in the uncertainty of this estimator. Of cours...