instruction
stringlengths
9
38.7k
I'm curious if there are any algorithms that solve this type of problem: Suppose you have a camera that captures what a human would see, a GoPro for instance. But suppose I uploaded video from it to my computer, and I see that all of the pixels are scrambled, every pixel teleports to a uniformly random location. If a p...
I was given a question related to the quantile function using scipy.stats.norm.ppf, along with its solution - which I don't understand. I'm changing the question details, but citing the exact final wording: A painter's annual sales of paintings have a normal distribution of $N(30, 8)$. Next year, the painter wants to ...
I have a bunch of boxes containing texts from receipt OCR results, and I need to a way to align them properly. The attached photo shows part of a contrived receipt, but it illustrates the problem I need to solve. Because the receipt image is slanted, the Subtotal: box is more aligned with 25 instead of $23.00, so if I...
I’ve designed a GLM to predict user preference when presented with a choice between two buttons. However, there is some disagreement about how I’m providing collected user data to the model, and I wanted to get a third party opinion. Below is an explanation of my logic with a simplified model: Model: P ~ Button1Size + ...
I have a set of observations $y_i$ for a set of values of the independent variable $x_i$. $x_i$ takes values of angles, so it is a circular variable. Is there some method to perform cubic splines or some interpolation on the values of $y_i$, taking into account the circularity of $x_i$? Extra points if there exists a P...
I have a sample that is randomly drawn from a population, and want to test if the distribution for a categorical variable age (under 30, 30-64, and 65+) is significantly different from observed population age percentages. Is there a way to compare the percentage in each of those categories in the sample to the overall ...
Suppose I am using Nested CV to estimate the generalized error of a model and a set of hyperparameters. I have chosen two scoring metrics of interest: Brier Score and AUC, because I want to get an idea of how discriminative and calibrative my model is. Because my associated cost requires good calibration, I want to c...
Given a gamma distribution with unit scale and shape $\theta$, and given an arbitrary variate $x$, what is the derivative of the variate $x$ with respect to $\theta$? In other words, I would like to produce a stochastic function: $$ \begin{align} g: \mathcal R &\to \mathcal R \times \mathcal R \\ \theta &\mapsto \left(...
I am doing self study in statistical inference and am rather confused about how to approach generalized likelihood ratio test (GLRT) problems. I am trying the traditional approach by definition and running into a wall. Problem: Let $X = (X_1, \dots, X_n)$ be independent and identically distributed observations from th...
I'm not sure if I understood well how LSTM works. I know that the LSTM layers keep an internal state. But I'm not sure if this state is maintained between subsequent samples during the training process. That is, changing the ordering of training samples in the same batch would produce different outcomes in the training...
Consider the problem of estimating the heads probability $p$ of a coin by tossing it until the first heads outcome is observed. Say we get $k_1$ tosses, then $U_1 = \frac{1}{k_1}$ is an estimate for $p$. It can be shown that $E(U_1) > p,$ assuming $p < 1$ (eg by working the expression for the expectation, or via Jensen...
I was looking for literature which connects prediction intervals with the bias-variance trade-off. Obviously both concepts deal with describing a mean squared deviation: the bias variance tradeoff deals with $E_{Y,x,D}[(Y-\hat{Y}(x)_D)^2]=E_{x}[E_{Y,D}[(Y-\hat{Y}(x)_D)^2]]$, which takes the average over (potentially de...
I want to know if it is not only possible to handle left-truncation of data in a survival model, but to know/predict the hazard function (probability of event) before the start point, i.e. the point of truncation. I have species observations for many sampling sites (locations) and years. For each site-year combination ...
Given data $x_1, \dots, x_n \in\mathbb{R}^d$, I am looking for a nonlinear dimensionality reduction technique $f: \mathbb{R}^d \rightarrow \mathbb{R}^q$ that only uses a limited number of dimensions to represent the data in $\mathbb{R}^q$. In the linear setting, the natural candidate is sparse PCA, which limits the num...
Let's say I have Antarctic temperature data for 2020-2023, and based on this data I would like to forecast the temperature for the following years. Which machine learning method will allow me to predict years ahead? For what period forward could I generally forecast in order for the results to be satisfactory and pro...
I have a dataframe which is structured in a way, that it includes a different amount of observations (trip chains) for each person. A trip chain consists of all the trips an individual took from leaving his home up to returning to his home. The persons made different amounts of trip chains. Trip_Chain_ID Person_ID Am...
The dataset has ten variables, and I am trying to conduct a cluster analysis. The ten variables are coded yes, no, or unknown. And I converted the character values ('yes', 'no', 'unknown') to numeric values ('1', '0', '(blank)'). If the variable is coded in 'yes', 'no', or 'unknown', can I leave the 'unknown' value as...
I stumbled across this interview question which has many wrong answers posted. How can this question be answered? Assume the distribution of children per family is as given in the table below: # children 0 1 2 3 4 >=5 p 0.3 0.25 0.2 0.15 0.1 0 Consider a random girl in the population of children. What is th...
I am conducting a meta-analysis to compare the differences between Group A and Group B by measuring the pooled Hazard Ratios (HRs) for the median Progression-Free Survival (PFS) and Overall Survival (OS). While I have accurately calculated the pooled HRs using R, I also intend to present the pooled median values for PF...
I am running a group invariance test. The data consists of data from students from grades 5 and 6 for one school (School A) and only from grade 5 in another school (School B). I have already run group invariance tests for Grade 5(A) and Grade 5(B) and it holds for partial strong invariance. I have also run group invari...
I want to do one sample t.test with data x = c(1450,1480,1640,1610,1500,1600,1420,1530,1700,1550) to see whether μ=E(x) is significantly greater than 1600 under level α=0.01. Firstly, I do the normal test for x shapiro.test(x) #p-value = 0.9494 Then I have two hypotheses (candidate choices) (case1: right) H0: μ<=1600...
I face the problem of calculating the similarity between multiple time series. What I want to do is compare each one with the first one to quantify the degree of change. The challenge is that they are circulant and not aligned, similarity measures like euclidean distance dont really seem promising. I was thinking of dy...
I am at the start of a project that collects data from subjects every 3 months. The data I currently have is nearly all independent (one record per subject, see screengrab below) but we've just hit the first 3 months milestone and have collected data from a few previously-sampled subjects, and so have added a few repea...
I want to run a multiple regression in SPSS with 7 independent variables but 3 of them are showing high correlation coefficients in the correlation matrix. How do I diagnose multicollinearity?
I have one dummy independent variable, one categorical independent variable with six categories, and two continuous independent variables. The dependent variable is binary (yes/no). The interaction term is defined between the dummy variable and one of the continuous variables. Another interaction term I want to examine...
Two months from now, more or less, I am going to have a course on ML which the gentleman who is my professor uses the Bishop PR&ML book as reference book. Now, the past semester he introduced Jurafsky's book Speech and Language processing as reference but he actually gave all the questions and exercises from the parts ...
I was interested in doing a panel regression so I read around on the topic and found that there are two ways to go about it. You can either do a fixed effect regression or a random effects regression and to determine which one is best for your data, you perform a Hausman Test. Now my question is other than the Hausman ...
I am implementing an unconstrained optimization algorithm using gradient descent. I am evaluating a cost function at a given point, evaluating the gradient at this point, and selecting the next evaluation point along a gradient descent direction using a line search method. I discussed this algorithm with my supervisor,...
I know some theory about deep neural network, cnn and back propagation in general. I am fascinated by the power of these technologies. I try to understand also the math aspects. For example the fact that cnn layers performs better than dense layers has amazed me a lot. In fact dense layer has more parameters, so it cou...
Question: How do you model a static response variable (change between baseline and final timepoint) with a variable that changes over time? Background: A person's inflammation levels are measured at 0, 6, and 20 weeks. Inflammation may have increased or decreased over time. Here is some toy data to demonstrate. As you ...
I know this question has been somehow reiterated in multiple ways, but I have not yet found an answer that would explicitly apply to my case. I wish to train a classification model to predict who is most likely to perform action X. Morever, I wish to use the output of the classifier (not 0 and 1, but the number between...
I'm doing a reliability analysis for some industrial equipment and am facing the problem that only a small proportion of the failures which occur in the field are actually reported (basically only those that are still covered by warranty at time of failure, which is small relative to the lifetime of the equipment). Thi...
I am using the lmer-command within the lme4-package to analyse a fixed intercept, random slope model: lmer(IUIF00 ~ SDBC0B_CWC + SDGEMO_CWC + SDAGT1_CWC + SRLR00_CWC + IUPU00_CWC + IUFU00_CWC + SDBCCP + SDGEMOCM + SDAGT1CM + SRLR00CM + IUPU00CM + IUFU00CM + (1|CLASS), data = CDMEdata, na.action=na.exclude, REML = TRUE)...
Assume that you have a matrix $X$ and you want to do Principal Component Analysis on that data. But the data contains nonlinearities, so you decided to use Kernel Principal Component Analysis instead. First you take your data and turn it into a kernel. K = exp(-gamma*D.^2) Where $D$ is the L2-norm distance of $X$ matr...
There is an article Fat-Tailed Regression Modeling with Spliced Distributions that describes fat-tailed regression modeling by fitting the distribution consisting of N components (different distributions) on exclusive argument intervals. Is there a framework or common way to implement this modeling in python?
Sorry about the confusing title, I am so confused that I don't even know how to frame the question. I have a device that gives me two sets of output values depending on how I set the surface charge of the surface. The outputs look like this, where output is plotted on y-axis and x-axis is as a result of different surfa...
I'm looking to estimate the size of the intersection between two sets, $A$ & $B$ I have a function to estimate this ($\verb|est_set_intersect_size|(A, B)$) that purports to have a standard deviation of the error between real and estimated intersection sizes as $$ \sigma_{err} = \sqrt{\frac{size(A \cup B)}{size(A \cap B...
I'm dealing with some medical data which is made up of all admissions to hospital in a certain area, where each row is one patient admission alongside the various tests and demographic data done. Also some patients have multiple admissions. To model the data I am using a joint model for survival analysis, with the outc...
I am not as knowledgeable about statistics as I would like and I am looking for resources to help me understand what kinds of questions are meaningful and which are nonsensical. We are developing some data analysis and transformation techniques in our lab for controlling what genomics people call "batch effects" betwee...
I am fairly new to R and multiple regression analyses so I could use some help interpreting my results. For my research I am trying to find predictors for the amount of blood loss during surgery. For this I have a dataset of clinical variables (which are either dichotomous, ordinal or continuous) and blood loss as an o...
When fitting linear models and coming up with a plausible one, AIC and VIF are often used. However, I notice that the order in which the methods are used makes a difference on the final model. Should VIF via car::vif() be used before AIC via step(), or the other way around? Details I have a dataset with 13 categorical ...
Let's say I have some variable $x_{1}$ and some variable $x_{2}$ and I have the result of $y$ on a specific day/week/month/year. I believe $y$ is a random variable and its result is not very useful. What I'd like to know is what was the expectation of $y$ given my $x_{1}$ and $x_{2}$. How would I model that? The variab...
I am trying to calculate the parameter estimates of GLM with log link and normal distribution and the linear regression with logarithmic transformation. For the first I get the total derivative of the loglikelihood with respect to $\beta$ as: $$\frac{-1}{\sigma^2}((e^{x_1^T\beta}-y_1)e^{x_1^T\beta},...,(e^{x_n^T\beta}-...
I have built my own Support Vector Machine by using quadratic programming and I'm using Kernel PCA with SVM. The output is tanh e.g Platt scaling. When I combinde all these technologies....I looked at my model and it looks exactly as a 1 layer neural network. It also behaves excatly as 1 layer neural network. Can it be...
In a systematic scoping review, I use the following databases: MEDLINE, Embase, Scopus and Web of Science. In MEDLINE and Embase, I use MeSH terms only to exclude animal and plant studies, but not exclude humans. For example, "(last query) not (exp Animals/ exp Plants/ not humans.sh.)" in MEDLINE. I do not use the chec...
I was under the impression that weighted regression on grouped data, where the weights are equal to the number of group members, should result in the same estimates as running the regression on the micro data. What am I doing wrong? library(dplyr) micro <- lm(mpg~wt+hp, data=mtcars) summary(micro) #> #> Call: #> lm(...
I am conducting research on the impact of between radiation dose and incidence of cancer in radiation epidemiology. To further explore this topic, I would like to utilize distributed lag non-linear models (DLNMs), which are commonly used in environmental epidemiology. The dlnm package for implementing this model in the...
I am a recommender system study which predict how likely a user browsing a product A will but another product B. One of the features is the price ratio of A and B, i.e., PriceB/PriceA. The assumption is that if the price difference of A and B is huge, probably A and B are not relevant or replaceable. I'd like to equall...
I developed my own NN toolbox, and it seems it works fine. But I am not sure why I get these spikes in my loss during training: I a training for a classification task of 2 inputs and 2 classes, similar to the XOR function. The network has 4 hidden units with tanh. The learning rate is constant at 0.001, without regula...
I am investigating covariate X for 8 cancer types which all have different survival rates and will possibly show different impacts of other covariates like age, sex etc. Therefore I will run 8 separate cox-ph regressions. However, I doubt X will behave completely differently for each cancer type. If it has no significa...
Context: we don't know the exact distribution parameters, however in practice we can obtain many samples from each distribution. Case 1: let's say that I have a sample of size N from each distribution. Let's say N=1000 would be realistic and doable in practice. Case 2: let's say that we only have a sample of size N fro...
So, the higher the confidence interval the lower the false positive rate, but the false negative rate will increase lowering the recall. Is it possible to determine which confidence interval is better/more significant? 95% or 80%? Also why is the lower limit for confidence interval is generally 80%? Why is it not 70% o...
I have a few questions regarding the specification of multivariate normal imputation model (MVNI): Suppose I have the following substantive analysis model, and there is missing values in X1. I want to use MVNI model to impute X1. Y = b0 + b1 * X1 + b2 * X2 In the MVNI model, I can include X2 and Y as response variable...
I am conducting a study in which I test two different treatments A and B. The outcome is binary (success, fail). We want to demonstrate if treatment B is non-inferior to A with a margin of the proportions of 5%. In our study, we obtained the following table: Treatment Success Fail Total Treat A 266 472 738 Tr...
Imagine we have a random variable called X, and the function form of the probability density for X is unknown. Now, I'm interested in finding the average value of the exponential of X, denoted as E[exp(X)]. The simplest way to do this is by taking N random samples, let's call them X_1, X_2, up to X_N, and then finding ...
I am doing some image analysis which involves: Creating a grid of square objects Calculating mean pixel values in each grid (m) Calculating standard deviation of the mean pixel values (s) Multiplying the standard deviation by 3.29 to obtain a contrast detectability value This is then repeated for different object siz...
I am currently working with mixed linear models, with which I want to compare whether variance between two methods is statistically different. This is my model code (using lmer package): model_a <- lmer(grootte ~ 1 + methode + (1|pnummer) + (1|endoscopist) + (0+methode|endoscopist), data = scale_dataset_m...
I am trying to understand the working of LSTM by considering an application. Given below is the application of LSTM for spam prediction a well known dataset. K.clear_session() model = Sequential() model.add(Embedding(1000, 128, input_length=80)) model.add(LSTM(64)) model.add(Dense(256,activation='relu')) model.add(Drop...
I just started to learn regression and I'm trying to fit a linear regression model to some data with one continuous independent variable x1, one categorical variable x2, and the dependent variable y. I first used OLS but the residuals violate both normality and homoscedasticity assumptions: Then I performed Box-Cox ...
I have two dependent variables (A and B) and one independent variable (C) for a group of individuals N. In the correlation of A with C, there seems to be a group of outliers from the main line of the correlation. This same group does follow the main line of the correlation in the correlation of B with C. What statistic...
I work for a company with a chain of auto workshops. We are interested in testing the effect of a data gathering initiative on customer loyalty (visits per year) and spend per visit, hoping that the extra data will enable us to offer better service. The plan is basically to ask all customers for permission to gather th...
2 different species (1 & 2). 17 variables (A-Q). N: number of meaurements. I needed to test for normality before performing ANOVA. Using the software PAST this is the result: I highlighted in green the cells of values that would not support a normal distribution. Given these results, how can I interpret the test? Can ...
I am working on my dissertation and am stuck with the data analysis section. Topic: Luxury Fashion Influencers on Instagram: The impact of source and content factors on Gen Y and Z followers' purchase intentions in the UK I have collected data on 5-point scales relating to the independent variables: Perceived credibil...
Is this the correct way to calculate the rate of lost to follow-up at first year? Rate of lost to follow-up at first year= rate of censored subjects at firstyear. There is no specific method for that calculation in SAS or R. Am I correct?
I am running Monte-Carlo simulations on a simple DGP of a mixed logit random coefficient model to check if the mlogit and logitr packages are able to recover the true parameters which are determined by the DGP. The DGP is set as follows $$u_{ntj} = \beta_{x1} * x1_{njt} + \beta_{x2_{n}} * x2_{njt} + \epsilon_{njt}$$ wh...
I am trying to asses the impact of cross-level effect on a dependent first-level variable. The problem I am facing is that the model returns singular fit. Some sources (https://www.learn-mlms.com/07-module-7.html) recommend to just remove random effects covariance. And it works. However, I wonder how it can impact the ...
This question might not be completely well defined mathematically, but if so I am hoping that people can help point me in the right direction, since this is not a part of mathematics I have ever had much experience with. Suppose I have a correlation matrix $C = \begin{bmatrix} 1 & c_{12} & c_{13} \\ c_{21} & 1 & c_{23}...
I am using document embeddings (100 dimensions) to train a classifier on text data, however, I am getting poor results which I am attributing to the fact that there are a large proportion of misclassifications in the source data used to train the model (~10%) I'm wondering if anyone has any suggestions on how best to d...
I have a few count variables that are part of a larger dataset (the rest of the variables are either numerical or ordinal). Their distributions can be seen below. My goal is to impute the missing values in these columns I am not really sure what model to use to impute each one of them. I have tried Poisson and Negative...
I want to distribute my hospital data into 4 tiers (bins) based on the score. Tier 1 (good hospitals) has the highest score and Tier 4 (not so good hospitals) has the lowest score. The tiers can be of any size and there is no problem with that. Importantly, I want the tiers to be well separated based on the score, so i...
Suppose $f(x;q)$ is the true distribution. The support of the random variable $X$ is $\Omega$. Suppose, I am interested in a particular subset of $\Xi \subset \Omega$. I would like to minimize the cross entropy of the two distributions over $\Xi$: $$\max_{p} \sum_{x \in \Xi} f(x;q) \log f(x;p).$$ I need to show that: $...
I am doing a regression in R on the effects of EU and UN economic sanctions on GDP. My model looks like this: lm(formula = log(GDP) ~ EU + UN + PTS + PolityV + GDPLag + Schooling + Mortality + Resources + Population + Trade + factor(Country) + factor(Year) with log(GDP) being the logarithm of the real GDPpc ...
I've noticed that sometimes, statements made in Wikipedia articles about statistics are criticized on CrossValidated. I understand that one does not necessarily have the time to edit an article to fix directly a given issue with it (e.g. it could require to rewrite completely an article). But I think it might be a good...
Very new to statistics and I don’t know the correct terms or what to Google! In 2021 x amount of visas were refused for 5 different reasons. In 2022 y amount of visas were refused for 6 different reasons. One of these reasons is Insufficient Funds and refusals for this reason has increased dramatically since 2021. I ne...
I am trying to implement the extension to Marginal Posterior Sampling for Slate Bandits, which is a context-free slate bandit algorithm that uses Thompson sampling with a Bernoulli prior. I want to follow their extension in section 6 with a generalised linear model trained on each (action, slot) pair. However, the fina...
I'm analyzing data from an experiment involving 3 different groups that were observed over a period of 120 days, with data collected every 5 days. I fit a GAM to capture the temporal dynamics and I also need to test for differences on specific days, namely days 50 and 60. I'm using emmeans, and I would really appreciat...
I would like to fit a model of the form $(1 - \phi_1 L - \phi_2 L^2 - \ldots - \phi_p L^p) \times (1 - L)^d \times (1 - L^s) \times y_t = \varepsilon_t $ in python. $L$ is the lag parameter, $d$ is the differencing order, $p$ is the order of the AR part and $s$ is seasonal period. So actually the model is not too compl...
Similar questions have been asked before where we have Cor(X,Y) and Cor(X,Z) and we want to find out the range of correlations of a linear combination of X & Z with Y. Or a third correlation: (X,Z). However I'm lost at a different formulation of the problem. Let's say you have two pairs of random variables: ($X_1$, $Y_...
Suppose we have 2 symmetric matrices $A$ and $B$. Then, we say that $A \succeq B$ if $A - B$ is a positive semi-definite matrix. I was wondering about the intuition and interpretation of $A \succeq B$, for example in terms of covariance matrices. Then, I encountered this, which answered my question. I was interested in...
Here is an interesting phenomenon: solar panel generation at a daily (day of the year) resolution is highly correlated with temperature. This isn't too surprising, summer brings more intense solar irradiance, longer days and generally fewer clouds. However, increased temperature causes the panels to perform less effici...
Currently, we are trying to predict future revenue from existing users. We use the revenue collected after 14 days of membership to predict 3 year membership. We train the model and make predictions on the level of cohorts (groups of users joining on the same day). Hence, the outcome being modelled is the average rev...
I believe I am confused in some fundamental way about the bias-variance tradeoff and I am trying to clear up my confusion. Sorry for a bit of a preliminary rambling -- I wanted to put my understanding on the table. I was reading "An Introduction to Statistical Learning" and in particular I was learning about ridge reg...
Suppose we have a finite family of normal distributions $P=\{N(0, 1), N(0, 2), N(1, 2), N(2, 2)\}$ and we want to find a sufficient statistic for this family. Intuitively it is clear that as the means and variances of these distributions are not same so $T(\textbf{X})=(\sum_{i=1}^nX_i, \sum_{i=1}^nX^2_i)$ is sufficient...
This is my first question, so I apologize if I am leaving out information. If that's the case, I'll do my best to fix it. I have two predictors of interest, sentence type (PO, DO) and condition (given-new, new-given) and their interaction, and the dependent variable is reaction time. I have analyzed these factors using...
I'm working on a logistic regression analysis using R and aiming to visualize the effects of the predictor "age" on the binary dependent variable "domestic violence." My dataset includes multiple predictors, and I want to plot the change in odds ratio for experiencing domestic violence as the age of women increases, wh...
I'm currently learning FDA (functional data analysis), following "Introduction to Functional Data Analysis" by Kokoszka & Reimherr. Here it is exercice 1.5: 1.5 The Matérn covariance function leads to a very general family of stationary Gaussian processes. The form of the covariance function is: $C(t,s)=\frac{\sigma^2...
I have a question regarding what type of statistical analysis works best for my study design. The research question is finding out what variables predict why a psychotherapy intervention is effective for certain people and not others. The study will be conducted over a 12 week period and collect weekly questionnaire sc...
Is the U, the unobserved creating an open backdoor path or confounding? Why condition on the collider Occupation good here?
I apologise if this is a stupid question (it feels stupid tbh). I am currently doing an event study and my abnormal returns are not normally distributed. I am now in the process of performing a Corrado rank test for significance. As far as I can tell, you take the sum of the ranks for each AR, and compare it to the ave...
What test can I use to compare whether the difference between the following sets of data are significant. I know, I can just look at them, but I'd like it to be a bit more scientific than that. The data represents the number of times (0-5) speech recognition systems tracked each of the 350 words in a passage correctl...
I'm experimenting with different R packages to calculate trends using the Mann-Kendall test. However, I'm getting varying results in terms of S, tau, and p-value. I would like to understand the reasons behind this. Here's the code I've been using: # Calculating trends with Mann-Kendall resul1 <- MannKendall(na.exclude(...
I'm seeking recommendations for feature selection methods before applying a random forest model to high-dimensional data, specifically with over 60,000 features and only 1,000 samples. My concern is that directly inputting all 60,000 features into the random forest may impact prediction performance and be computational...
When running panel regression, I have multiple equations with shared independent variables, control variables, and dependent variables, but different sets of interactive variables. For the main model, I run OLS, FE, and RE to select one suitable model, then check the hypotheses, and finish choosing a suitable model. Is...
2018 Bayes, oracle Bayes, and empirical Bayes 2021 Empirical Bayes: Concepts and methods Two modeling strategies for empirical Bayes estimation 2013 Empirical Bayes modeling, computation, and accuracy I have tried to read these papers (which is difficult for me). But I still haven't understood how to specifically ca...
I'm considering adopting a Log-logistic Accelerated Failure Time (AFT) model for my analysis. Initially, I contemplated using the Cox Proportional Hazards (PH) model; however, the PH assumption was not met by my dataset. My preference for the log-logistic distribution stems from its possession of a non-monotonic hazard...
I have outcome variable Y with independent variables A, ...., J and variables to control for clustering 'area'. I'd like to assess whether B, ... J inflate or deflate the relationship between A and Y. I think to assess that, we can use interaction terms in a regression model as follows (computationally): Y ~ AB + AC + ...
I apologize because frankly no matter how many stack exchange posts I read, I read the lmer cheat sheet, online guides, and even helpful articles yet random effects just do not make much sense. My analysis uses a general mixed effect model on binary values "choice" using glmer() in the lme4 passage. The independent var...
I have a dataset that covers loan applications from the year 2012 to 2017. It also includes information on the borrower (e.g., age, income, employment status) and information on the loan (loan duration, loan amount, interest rate). I have a regression where the main independent variable of interest is a gender dummy (1...
my data looks like this: > head(df,10) ID gene value state milk meat veg pruits eggs water 1 ID001 1 0.2044274 healthy 6 1 4 6 1 1 2 ID001 2 0.5214702 healthy 5 1 5 2 6 5 3 ID001 3 0.9340537 healthy 5 6 4 6 1 4 4 ID001 4 0.9579494 h...
I want to explore the relationship between several image-derived vessel metrics (continuous) and disease severity (5-class ordinal). The rationale is that the existing severity grading is somewhat arbitrary, and I'm interested in exploring new severity markers. I have two observations per individual (i.e. the data is n...