instruction
stringlengths
9
38.7k
average_precision_score from sklearn uses formula: ap = sum( (recall[k+1] - recall[k]) * precision[k+1] ) But trapezoidal rule implies: ap = sum( (recall[k+1] - recall[k]) * (precision[k+1] - precision[k]) / 2 ) This is typical Precision-Recall curve: We can see, that sklearn average_precision_score would over-estim...
For example, the standard deviation of a normal distribution is a constant? Why is that?
A. I have count data over a period of four years of fish from conducted count surveys at a landing site. The number of survey days each month is variable and some months have zero surveys. To compare years I have used: total number of fish/total survey days for each year. The data indicate a year to year decline. B. To...
I have the following code using R partykit package, which yields unexpected results. library(partykit) library(palmtree) data("BostonHousing", package="mlbench") set.seed(123) BostonSample <- BostonHousing[sample(nrow(BostonHousing), 150), ] lmtree(medv ~ lstat + ptratio + tax | ptratio + tax, data=BostonSample) The r...
I have precision and recall values and want to measure an estimator performance: import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import precision_recall_curve from sklearn.metrics import auc, average_precision_score y_true = np.array([0, 0, 1, 1]) y_scores = np.array([0.1, 0.4, 0.35, 0.8]) pre...
Consider these two distributions, representing ratings (in the range 0-9) given in an experiment for two different conditions A and B: A = [6.75 7.65 0 0 9 0 9 9 9 0 0 0 9 9 0 9 9 0 7.65 0 1.8 8.55 0.45 5.85 3.6 0.45 1.35 1.8 3.15 9 1.8 4.95 0 0.45 2...
What is the best practice to initialize parameters of the Bayesian Neural Network? I am stuck in a situation where I don’t initialize the parameters and every time I run the variational inference, I get different training errors (varies between 2-7%) and parameters. I am looking for stable results, basically the same r...
(Similar example data to a post I made posted yesterday but a completely different question) I have an exponential decay with off-set function that looks like this: exponential_decay <- function(i, a, lambda, billing_cycle) i + a * exp(-lambda * billing_cycle) I'm interested in showing some realistic scenarios of this...
my apologies ahead of time if it's not as clear as I would like it to be. I'm using a linear mixed effect (nlme package) to determine the association between a modularity score (on a range of -1 to 1) and balance performance. The population is a unique sample, with only 14 participants that took almost a decade to col...
If possible, I would like to use GEE to control for clusters in my data where some subjects have more measurement and outcome pairs than others. In this particular case, the outcome is binary and the predictor variable is a continuous measure. More specifically, we are looking at how a continuous measure X relates to h...
Some background: I want to train a regression model to predict future prices for used cars. I have about 85,000 observations collected from November 2022 to June 2023 and have around 80 different columns/features including the timestamp when the car was listed and the price it was sold at. Based on this background of t...
Can we use CUPED to get rid of the difference between groups, that existed before starting A/B test? Is it accurate?
When specifying a Bayesian model, one can specify weakly-informative priors. However, such priors may represent a concern to many researchers. After all, if they are weakly-informed, one may be concerned that the imprecision of such a prior may be biasing the results. It is also my understanding that the influence of t...
I am new to Bayesian inference and I am not sure if this problem and question are well-posed. When estimating the coefficients of a linear regression we can evaluate the statistical significance of the parameters against the null hp that the coefficient parameter is equal to zero.. When doing the same through Bayesian ...
I'm borrowing from the idea of Mean of absolute deviation around the median (https://en.wikipedia.org/wiki/Average_absolute_deviation#Mean_absolute_deviation_around_the_median). Would calculating standard deviation from the median instead of the mean be a good variance measure in the situation where the data has fairly...
Product of random variables tends to converge to Log-Normal distribution, is there a similar law for a product of large invariant random matrices? Following Burda survey, Section V, multiplying such matrices corresponds to multiplying their S-Transforms. What does the limiting distribution look like? If we have a large...
I have two dependent samples of data. Each sample contains N = 800 values (data points) and stem from the same human subjects, that is, sample one is the pre-experimental and sample two the post-experimental group of the same 800 subjects. Aim: I am not interested in comparing the two groups’ mean for statistical signi...
There are 2 treatments, 1) plant A grown in monoculture and 2) plant A grown with plant B. RCBD design. Using ANOVAs to compare reproductive (flower) mass (continuous), least significant difference comparisons between treatments. 3 runs of experiment. One of runs had no flowers produced in any Plant A for either treatm...
I am given two datasets, from which I am seeking to evaluate if there is any difference in life expectancy/mortality rates between these two male population datasets (approx. 500 and 2000 data points from each group). If curious, one is a group that has been exposed to a certain threshold of a type of radiation, and th...
My understanding of the 95% confidence interval is the interval should contain the true value 95% of the time. Therefore, I test it with the linear regression confidence interval for the mean response. Here is a reproducible r code: set.seed(1234) n <- 100 x <- runif(n,0,10) y <- x+rnorm(n) fit <- lm(y~x) result <...
Context I have two paired groups and I want to test whether their means are equal or not. I cannot assume normality of the distributions of both groups/distribution of the differences. Variables The random variable of the study is the processing time of datasets on a cluster of machines (parallel proccessing). (Data pr...
I have a problem that resembles SEM or factor analysis, but the indicators are estimators of the parameter, not empirical observations of random variables. The model is a one-factor model with two indicators, and I want to get the variance-covariance matrix. I know that a model like this is not identified, but the whol...
I have access to individual data from 3 different studies. The first one has measurements of the variable of interest at baseline and 5 days after the intervention. the second one has measurements at baseline and 15, and 30 days after the intervention. the third has measurements at baseline and 60 days after the interv...
Let's say I have a dataset of characteristics of newly launched products in a retail environment, and the dependant variable Y is total $ sales in the first year of launch. If I train a quantile regression model on this data for every quantile from 0.01 to 0.99, and plug in data from a new unseen product, would this gi...
Please could you help me to figure out how to simulate competing risks survival data? I am aware that I can achieve this using survsim command but I would like to generate this from first principles. The idea is to simulate a HR for treatment for the event of interest and then have a HR for treatment for the competing ...
I'm considering integrating the Boosting technique into a basic XGBoost classification model, in which I'd focus on misclassified instances. Assuming I have already used hyperopt to build a basic XGBoost model ( let us name it xgboost_model), I want to understand if the following approach is sound: a. Identify and isol...
I have a simple order of operations question with sum products, I want to calculate the natural direct effect (NDE) for x and x prime on data similar to those below. My simple question is: Do I first calculate the delta of x and x prime creating a new feature called delta_x, then multiply this by the p_of_product and s...
Let $X$ be a normally distributed random variable with $\mu=0$ and $\sigma=1$. Theory tells us that $\mathbb{V}[\text{ReLU}(X)] = \frac{1}{2}\mathbb{V}[X] = \frac{1}{2}$. Thus, we should have that $\mathbb{V}[\sqrt{2}\times\text{ReLU}(X)] = \mathbb{V}[X] = 1$. However when I run this as an experiment with PyTorch this ...
Background for the data: I have two continuous variables "AGD" and "Weight", a categorical variable with 7 levels "Litter size" and another categorical variable "Breeding_pair" with 4 levels. Basically weight is going to depend on litter size as the smaller the litter size the more nutrients an animal can get and so th...
I am investigating Type I error inflation for the one-sided test $$H_0:\beta_2=0$$ after one step of forward stepwise regression for the following model: $$Y=X_1+\beta_2X_2+\epsilon$$ where $\epsilon \sim N(0,\sigma^2)$ assuming $\sigma$ is known. So when calculating the p-value, I am using the basic procedure for line...
Consider this sample data: import pandas as pd # slice of data df = pd.DataFrame({'experiment': ['A', 'A', 'A', 'A'], 'date': ['20230721', '20230722', '20230723', '20230724'], 'success': [1, 1, 0, 1], 'cum_success': [64, 65, 65, 66 ], 'nobs': [121, 122, 123, 124]...
hope you are well. Does any one knows any service where I can send an image an return its segmentations areas, like using Meta's SAM (https://segment-anything.com/ )? If not, does any one knows a guide on how to deploy a model like it using Azure ML? Thanks!
It is well known that the (sample) mean of residuals becomes zero in an unweighted OLS fitting of a linear regression model. How about the case for the nonlinear model? I have numerically tested whether the mean of residuals become zero in least-squares fitting of the following models for example. y = b1 / (x + b2) + e...
Dependent Variable(s): cognitive test Independent Variable: Sex (covariate), Age (covariate), working memory, long-term memory test, interaction(working memory: long-term memory) However, the interaction was not significant. so I want to investigate whether Working memory or long-term memory would be more influential t...
I think that normalization of data is performed assuming that the samples you train on are "representative" of real-world or "production" data. This means I have to constantly monitor the performance and data of my model after deployment. If I normalize using z-scores or mean data, a non-representative sample will give...
Are there ready-made algorithms to solve the following problem? At each time step $t$ the agent chooses a value $x_t$. There is a function $f(x, t)$ that gives the error on timestep $t$ after choosing $x$. $f$ is assumed to change relatively slowly in both $x$ and $t$. It might reasonably be assumed that for a fixed $...
Aside from additional data and feature engineering, how can I make sure my ML model picks up on patterns that only apply to certain thresholds or ranges? For example, assume I use data about users and movie ratings. I want to predict parameters for user ratings and watch time to predict total revenue from the movie. Th...
I am using $k$ fold cross validation, and I wonder how it can detect overfitting problem or how it can prevent the overfitting issue ? Suppose I split the data into training and test set, applied CV on the training set. Say, I got a mean cross validation score of $0.96$. But it fails to perform well on the test set, be...
I have written a Bayesian model in JAGS that I use to calculate the growth rates of several plant populations as well as their variance while taking into account the observation error during the sampling process. It works well and now I would like to test if those growth rates differ between populations in different ha...
I do have a theoretical question. Let's assume we have a sample of empirical observations (e.g. financial losses thus real > 0) on which we want to infer a stochastic distribution (e.g. log-normal). Let's also assume that, within the data, there is a few observations (e.g. 2 of them) which where unlikely to occur (e.g....
I have a continuous outcome/dependent variable that is measured multiple times before and after an treatment/intervention per subject. The multiple measures are performed very closely together and are done about 10 times, because single measures are known to be variable. So you have 10 measures before, and 10 after int...
this is my code to calculate the pvalue of the fisher test for each pair of successes from two binomial distributions (n=m=20). Number of successes from 0 to 20 so 21x21 possible combinations. In addition to the pvalue for each pair, I would like to calculate the actual probability, i.e. the exact probability that the ...
group by = an sql function that merges all repeating values of each column(regression variable) into a single distinct value. group by can take multiple arguments: group by createdate, ad, campaign creates a table of distinct campaigns for each distinct ad for each distinct createdate(i.e. in this case, each distinct v...
I am doing work on AIC comparisons. For this purpose, I am trying to understand how log-likelihood is calculated for exponential smoothing models (ETS models) in different R packages. In particular, ets in R forecast and es in R smooth appear to give very different log-likelihood values for the same model fitted to the...
update The question is that I have some datas, includes: region/ animal id/ year/ gender/ environment's noise value/ environment's illumination value/ cort1 and I would like to know whether the data I have: the environment's noise and illumination value will affect animals stress value (the cort1 I mentioned) Because ...
Let's say an astrologer is tasked with guessing the star signs of 12, for him, unknown students. The astrologer knows that all 12 star signs are represented among the 12 students, i.e. a single star sign will belong to one and only one student. The astrologer can only guess one star sign per person. Additionally, he wi...
I am attempting to determine how to test the relationship between a discrete variable (the length of a string of text, my IV) and a categorical variable (binary, a yes or no outcome, my DV) but I'm having trouble figuring out the best methodology. Would it be incorrect to use a one-way ANOVA or is that a valid method? ...
I have run a simple linear fixed effects model to understand the relationship between exposure to hate speech and its adoption online. Model 1 is a simple entity fixed effects model with no covariates, while model two adds covariates to this. Model three includes both time and entity fixed effects. I'm struggling to th...
I'm attempting to build a model to predict 6 month survival probability in a cohort of lung cancer patients based on patient demographics (age, performance status, co-morbidity scores etc), tumour staging and treatment details. Initially I thought the best approach would be to use a model (logistic regression, random f...
I want to forecast a dependent variable and I have some independent variables. First I shifted the dependent variable up, such that I have a supervised problem. For instance in January 2000 the independent variables stay the same, but the response is the value of February 2000 in this case (forecast horizon h=1). I wan...
My outcome variable is called PB, and it is a binary variable: 0 or 1. I have used generalized linear mixed models (GLMM) because each subject ($n=238$) was measured twice (overall observations = 476) Using GLMM with a logit function, I have built an empty model with random intercepts. This how I did it in R: FirstMode...
I have several daily single band images (with reflectivity values). there are several gaps in these images. To fill the gaps, I collected several ancillary datasets (including surface temperate stored in an image format) for each image. these ancillary datasets have meaningful correlations with the values provided i...
Let $X$ be a log-normal distribution and consider $Y=aX+b$ for some $a,b>0$. I would like to know if one can compute $$\mathbb{E}[\log(Y)]$$ This would be very easy if it was $b=0$, since in this case $Y=aX$ is lognormal and, in turn, $\log(Y)$ would be normal. Question Is the computation feasible in general? I am inte...
I am tasked to find the wiener coefficients for a time series forecasting dataset with daily seasonality. I split the dataset into 24hour segments an find the wiener coefficients between day N and day N+1 using day N for the autocor matrix and dayn and dayN+1 for crosscor vector. The final solution has 24 coefficients....
I want to compare the Perkins Eye Index (PEI) values, a measure of lobster egg development, between the months of January to June 2023. This is because I want to test the hypothesis that PEI varies significantly month by month, providing insights into the nature of the lobster spawning season. My dataset contains two v...
I have two separate datasets, A and B. I have a score that I am applying in both, and I am testing how well that score predicts a disease (present or absent). One property that I think would be interesting to understand is the information content of each cohort based on the cases and controls. Intuitively I would think...
In my first step of the analysis using the data.org function, I received the error message below. Error in Anova.III.LR.glm(mod, singular.ok = singular.ok) : there are aliased coefficients in the model I've tried to use either column number or variable names in the codes (see below), but both of them showed me the ...
You observe a sample of 100 independent observations $X_i$ from a population with the density $$ g(x)=C \sqrt{\lambda} \exp \left(-\lambda x^2-\lambda^2 x^4\right), \quad-\infty<x<\infty $$ where $C=0.73077$ is the normalizing constant, and $\lambda>0$ is an unknown parameter. (a) Find the minimal sufficient statistic ...
I have some data for a collaborative filtering problem, which can be represented in a user-item interaction matrix. The data consists of 20 million orders, where there are 15000 different items, and we only now if an item was bought or not (implicit data) for each order. It is also important to note that the data is re...
For example, suppose we want to predict y with features x1, x2, x3, x4. If I specify y = fA(x1, x2) * fB(x3) + fC(x4) where each f is nonparametric (e.g. a decision tree), is there any model that can train a model based on this form specification?
What is wrong with this proof? Can you notice that? or I am wrong? In my opinion, in the R.H.S. of the inequality (3.2), the index of 'e' is negative but it must be positive if we use the given proof because if we insert $t=\displaystyle\frac{4a}{n}$ in $ e^{-ta}e^{\frac{nt^2}{8}}$ we get $e^{-ta}e^{\frac{2a^2}{n}}$
I am working on a Convolutional Neural Network for classifying two classes of images whose difference between them is very small. Running the CNN (using PyTorch), it was able to correctly classify practically all of the labels belonging to the second class, but only half of the labels of the first class (the dataset wa...
I have a question regarding the appropriate use/application of a null model simulation. The structure of the study is: -60 pairs (120 total) of nest boxes -surveyed five time per year (April, June, July, August, October) -surveyed for five years I want to statistically assess the differences between sample month. Speci...
Both CLT and LLN are stated in terms of a fixed probability space that admits an infinite sequence of IID RVs. It is a common-place in many probability and statistics texts/notes that such a sequence does not exist on a finite probability space, but that the CLT and LLN apply anyway as "approximations" provided that th...
If a training set has a continious feature, some texts recommend that first the dataset is sorted based on the continious feature, and then split points are chosen. What I am not sure about, is how to handle a case where the training set has more than one continious feature? How can that be sorted and then information...
I want to test which week day is more important for a specific client, given a historical communication in different days and with open email or not . for example: monday Tuesday Wednesday ... email 40 60 34 ... open 20 40 13 ... proportion 20/40 40/60 13/34 ... First I want to test all the days at the...
Can someone please walk me through (or cite a reference to) exactly which fixed probability space is used in an application of the CLT, especially in the finite probability space case? My question comes from the following: generally, the CLT is stated as "let $X_i$ be an infinite sequence of IID RVs on a probability sp...
I have conducted a survey of risk preferences in a specific province of a given country. There is data of risk preferences of this same country/province from 5 years ago, and I would like to test if there are differences between risk preferences, so a simple test of differences in a before and after fashion. The issues...
I am comparing the performance of two AI models across 15 data sets. One model performs heavily better than the other on all the performance metrics. When I perform a one-tailed Wilcoxon signed rank test, I am always getting a p-value equal to 3.0517578125e-05, no matter the performance metric I am using. As an example...
Let's consider I have 1000 unlabeled data points. Out of these 1000 points, I manually labeled 200. Now, I am feeling lazy and don't want to label manually the remaining 800 data points. What would be the next step? I am considering using dimension reduction techniques, such as PCA, to visually assess if the dimension ...
I want to estimate a logistic regression model on a panel data (subject-time) with subject-fixed effects. $$\log(p_{it}/(1-p_{it})) = \alpha_{i} + \beta x_{it} + \epsilon_{it}.$$ To do so, I want to maximize the conditional likelihood function to overcome the incidental parameters problem. The specific issue that I fac...
In ML training and other analytics I often combine features to produce a 'metafeature' and then perform a 'groupby' (pandas) or 'GROUP BY' (SQL) query. What is the technical term for this operation? Example, in my work I will combine taxonomy, e.g. the genus with a given gene function and gene variant. You could instea...
Suppose that we have the following situation. With a predictor $X$ and a response variable $Y$, plus a confounder $C$, we consider two models: one is $Y \sim N(\alpha_0+\beta_0 X, ~\sigma_0^2)$ and the other is $Y \sim N(\alpha_1+\beta_1 X + \gamma_1 C, ~\sigma_1^2)$ Would you consider it a good practice to report both...
I have pain-score outcomes for some patients in my database. Many individuals have repeated pain scores across multiple days. My main question of interest is "Does the treatment (as opposed to being in the control) improve post-operative pain scores? Since each individual may have multiple pain scores recorded over sev...
I have a set of objects for which I measured the variables in two different ways. How can I determine whether these datasets overlap well in the feature space? I was thinking about calculating some correlation coefficient between the two datasets, but I would like to know if there is a better metric or test for this ki...
I am doing my dissertation on the spillover effect between countries' markets and looking to use VAR-MGARCH model to do it. For example how would a change/shock of US market index affect Thailand index. I have found some idea in here: Equations for VAR model with GARCH errors However, I am struggling with the log-likel...
for a project I'm doing an interrupted time series analysis using a segmented linear regression. I'm trying to show that the trend (or slope) change after the first intervention (the first dotted line) was counteracted by the trend (or slope) change after the second intervention, i.e. that the trend/slope in the post-2...
Suppose I have the Bernoulli random variables $S_t$ for $t=1,\cdots, T$ and for an issue related to my problem, I want to express $P[S_t=s_t\mid S_{t-1} = s_{t-1}]$, by using the law of total probability \begin{equation} P[S_t=s_t\mid S_{t-1}=s_{t-1}]=\int_{\mathbb{R}}P[S_t=s_t\mid S_{t-1}=s_{t-1},x_{t-1}]f(x_{t-1}\mid...
shapiro.test(U_ER) Shapiro-Wilk normality test data: U_ER W = 0.98093, p-value = 0.002173 agostino.test(U_ER) D'Agostino skewness test data: U_ER skew = 0.0057972, z = 0.0381773, p-value = 0.9695 alternative hypothesis: data have a skewness given the test, indicating the different results, can I consider my var...
I am trying to understand the concept of the design matrix (or matrices) in mixed effect models evaluated using the lme4 package from R. In a standard fixed effect linear model (e.g. glm), there is a single design matrix which must have fewer columns than rows, and none of the columns can be co-linear with any other co...
I'm trying to make sense of the "The Bandit Gradient Algorithm as Stochastic Gradient Ascent" proof in Sutton and Barto's intro to RL textbook. I'm stuck on the line $E[(q_*(A_t)-B_t)\frac{\partial\pi_t(A_t)}{\partial H_t(a)}/\pi_t(A_t)] = E[(R_t-\bar{R}_t)\frac{\partial\pi_t(A_t)}{\partial H_t(a)}/\pi_t(A_t)]$$ They s...
Are there any R functions (or other free software) for calculating power/sample size needed to compare 2 AUCs (area under the curve)? Specifically, suppose you want to fit 2 different models to a dataset to predict a binary outcome, and you want to test whether the AUCs from these 2 models differ. Given that the 2 AUC...
My goal is to predict components that are going to fail the soonest in order to replace them. To date, we've deployed a binary classification model, with the positive class representing a component's failure within the next three months (a relatively arbitrary time period), and the negative class representing the compo...
In an attempt to implement a form of conditional distance correlation for random variables represented as vectors of observations, I came upon this paper that nicely extends the notion of distance correlation/covariance to the conditional case, but am having some trouble figuring out how to implement this in practice/...
Im trying to find a method to normalize the slope value for the historical net profits of many companies. But the problem arises when certain companies are clocking profits in thousands, and some in millions. The slope is higher for the latter. But there are chances where the growth of a lower slope company is higher t...
I have applied PCA to a dataset using two different R packages viz. "stats" and "FactoMineR". For both models, I am getting different loadings. What may be the probable reason behind such a difference? prcomp {stats} Rotation (n x k) = (6 x 6): PC1 PC2 THN 0.5597064 -0.1736148 GRH ...
I've come across an issue while analyzing some data and haven't been able to find a similar question on the site. I'm working with data concerning the impact of certain genes and smoking on the concentration of a particular drug in the blood. My variables are dichotomous (gen1 = 1/0, gen2 = 1/0, smoking = 1/0). The gen...
Given a r.v. $X \sim N(0, 1)$, what is the density of $Z = X I(\lvert x \rvert < \lambda)$. I am confused with the truncated Gaussian $Y = X$ if $\lvert X \rvert < \lambda$ otherwise $Y = 0$. My question is that whether $Z$ and $Y$ has same density and why. My attempt: I think the density of $Z$ is normal say $\phi(x)$...
I want to calculate the length of a signal. By length I don't mean the number of points, but the actual distance from point to point. Imagine that a person would walk along the signal, what would be the distance traveled? The points are evenly spaced on the x-axis. This should probably be done via integration, but I cu...
I want to compare performance between 100 groups. Each group can be described by a value, say group size. In other words, I want to see how performance changes with group size. Each group has multiple members. Each member can be a member of more than group. The unit of analysis is at the member level. OLS fails because...
hope this question fits here, any help would be greatly appreciated. Background: I´m working on a data generator for customer default data. The default rate shall depend on multiple categorical independant characteristics. The marginal distributions shall be adjustable. The issue: The default rates for a specific chara...
I'm looking for to compress an image $X$ into a smaller image $x$. But not only compress, also reduce its view into a simplier view that are linear separable. My question is: Can I use linear autoencoders to turn an image $X$ into a simplier linear image that is linear separable?
My data set is having a column Gender, so I have to apply One Hot Encodingto perform KMeans Clustering. Q1. Should I take care about dummy variable trap here ?, should I remove one of the dummy columns ? Q2. Should I use Label Encoding or One Hot Encoding in case of Clustering Algorithms ?
I want to do moderated mediation using the PROCESS Macro (Version 4.2). Model 17 resembles what I need to do the most, however it only allows 2 moderators. I want to test 4 moderators at once. Even using the syntax, i think there is no way around it, as there are only the zmatrix and wmatrix statements. Hayes (2018, p....
I have this dataset made up of several questions, each with ordinal answers (likert-like) which unfortunately include a "don't know" option. The dataset is split in two: one portion from year 2019, one from year 2023. The samples are independet (no way to know these are the same people that answered the first survey) A...
Hello, I submitted a study with a linear regression model. My sample size is >1000, so I invoked CTL. The statistics reviewer is requesting that we check assumptions of normal distribution (specifically normal distribution of errors), and if not met, he/she recommends that we switch to logistic regression using one of ...
I'm currently working on a research project where I want to explore whether there is a relationship between group membership and scores obtained on a questionnaire. I have three distinct groups, and the questionnaire scores follow a continuous distribution without being normally distributed. After some research, I deci...
I have a question about the output of my glm model WITHOUT an intercept. I am comparing the number of infected leaves on plants in different months. In the case of a model WITH an intercept (using the default log link of the Poisson model), the (Intercept) should represent the log of the mean number of infected leaves ...
I am currently working with a dataset of Facebook posts that have variables such as total engagement and views. I am trying to group these two variables into discrete levels according to how big the value is (for example, divide views in 10 clusters, 0 for lowest and 10 for highest). These discrete groups are then used...
I have a question which may seem stupid. This is for a retrospective cohort study. I have a table like this for my outcome: Among the 20,000 patients in group A, 4671 are dead (23.55%). Among 50,000 patients in group B, 5755 are dead (11.5%). I need to calculate the risk ratio for death (group A vs group B) If I calcu...