instruction
stringlengths
9
38.7k
I have a model where I can either code a predictor variable as a continous variable with the raw values, or as a categorical variable by assigning the values to quartiles. When I run a random forest model with the continous variable, the continous variable comes out as the most important variable in the model. When I...
Suppose $x_i$ comes from standard Normal. For a given $\alpha$, I'm interested the following random variable: $$f(s)=\log \prod_{i=1}^s (1-\alpha x^2_i)^2$$ For $\alpha=2.422$, empirical distribution of $f(100)$ looks like this: What kind of distribution is it? How do I estimate the variance in the limit of large $s$...
I don't understand why the output of pairwise comparison using emmeans function is z.ratio when analysing response time data. What is the difference between z.ratio and t.ratio? And is this reasonable that the estimate is too large? Here is my code. # model e1_model1 <- lmer(data = mix1, formula = RT ~ soc_s*persp...
Basically as the title says: in a scenario, we have missing observations where the entire state vector is unknown for consecutive time steps. Do we just run through the prediction section of the algorithm and not the update section for both the state vector X and the covariance matrix P?
Given two independent variables $X$ and $Y$, I want to test if they follow the same distribution. $H_0: F_X(.)=F_Y(.)$ $H_1: F_X(.)\neq F_Y(.)$ I do not want to test if their medians are the same. Their shapes are shown below, look similar but can spot slight differences: A concern is that I used the Mood's median tes...
I am reading up on Poisson Regression. Say I have an input vector $X^{T} = (X_1, X_2, \ldots, X_p)$ and I want to predict an output $Y$ which is correlated to these inputs. Then the mathematical form of a Poisson Regression Model is: $$\log(Y) = \alpha + \beta_{1}x_1 + \beta_{2}x_2 + \ldots + \beta_{p}x_p$$ where $\alp...
I am using perceptron machine learning to solve the binary classification problem A vs B. For this I have to assign the actual values of A and B to either 1 or -1 to be able to use perceptron. Does it matter which value I assign, as it is not clear which value makes more sense to assign 1.
I would like to make sure whether I’m interpreting the results of the lmer model I generated in the right way. The model is: lmer(distress ~ cond*group + (1|subject), data = data) Condition has two levels (S1 and S2, S1 is the reference), group has 2 levels (A and B, B is the reference) Would the coefficient of the t...
I am currently at a dilemma concerning a model describing the allometric relationship between body size and mass. After carefully checking model assumptions and selecting the model that best fits the data, my final model was the following : modD=lmer(body_size~0+(D_Mass*Species*sex+D_Mass*sex*Season +Species*Season)+(...
I know this is undesirable in most cases, but I have a very niche case where I must achieve 100% accuracy on training data. I do not care about unseen points, I only care about given X points what is the Y value for each point. I will train the model before hand but I must get 100% accuracy guaranteed. Some knowledge I...
This is the paper which is kind of I'm trying to implement based on my set of genes which i have narrowed down from WGCNA analysis. Its a both conceptual and R related question[How to do it in R] my lack of conpetual clarity. For single gene Im clear what to do where I can divide or split my patinet group based on low ...
Cohen's Kappa is a measure of inter-annotator agreement that is traditionally applied to a setting where you have two raters who each classify $N$ items into $C$ mutually exclusive categories. For example, in a 4-class classification dataset with 1000 examples, $N = 1000$ and $|C| = 4$. In some settings, $|C|$ differs ...
I'm doing a GLM homework, and I'm stuck with the following problem: Suppose that data ($Y_i$; $\mathbf{X}_i$); $i = 1, . . . , n$ are observed, where $\mathbf{X}_i$ is a p-dimensional vector for predictors of patient i and $Y_1 , . . . , Y_n$ are given by the following table: Y 0 1 2 3 4 5 6 7 8 Number of Sub...
The mutual information of a joint probability distribution $p(x,y)$ tells us, if we send $n$-letter messages with each letter drawn from the marginal distribution $p_X(x)$, that we can use roughly $2^{n I(X:Y)}$ sequences to transmit words to the receiver with small maximal probability of error, in the asymptotic limit...
Let's say I have a statistic (in this example sd) for sample v1 and sample v2. I would like to compare those two statistics but since I have only two values I cannot run a test like t.test, so I thought I could create bootstrap estimates of sd: v1 <- c(10,23,21,12,14,14,13,14,15,25) v2 <- c(10,11,10,13,13,13,14,19,12,2...
Introduction and Model I recently had a reviewer ask what the strength of my GAM interactions were compared to my main effects. This was in reference to some predicted probability plots I created. To emulate what I mean, I have created what I'm talking about with data from the gamair package using mgcv. #### Libraries ...
I have seen people using both normalisation which is min-max normalization ( all values will be between 0,1) and standardize( normal distribution) the data as part of pre-processing. It's given that if data is skewed prefer normalization. What if there are one hot encoded values in other variables in a regression analy...
If I have two metrics, - number of reviews and the rating out of 5, and I want to combine them into a single meaningful rating that can rank a list, how can I do that? For example, let's say I have the following: BeachName-#Reviews-Rating Pantai Kaneko Beach-10-4.9 (meaning 10 reviews with a rating of 4.9) Pantai Kel...
I have fit two partial proportional odds models in R using the clm() function from the ordinal package, with nominal effects (more on the function and package here). I have an ordinal response variable and several independent variables of different classes. I was wondering what would be a good way to assess goodness of...
I've read that post-hoc power analysis is useless when the result of a test is statistically insignificant, which I understand (post-hoc power analysis is just circular logic in this scenario). But what if the result is significant? Isn't a significant but underpowered result really dubious, which would justify the sys...
I have 5 sensors and they count number of cars pass through that sensor each day. I have gathered monthly data for all sensors.(i.e. summing each day's data. Now I want to test whether distribution of cars passing through these sensors differ. I was planning to conduct one-way ANOVA but is it right? Is there a better a...
I am trying to predict the revenues of a portfolio of items. I want to simulate the revenues in a particular market situation in which they might increase. Each item's revenues is made up of 3 components: Revenues per item = constant * percentage_increase_for_A(item) * A(item) + constant * percentage_increase_for_B(ite...
Background I'm working on a tabular data model that performs a binary classification. The model has recently started underperforming and I'd like to know if that's due to a drift in the feature distribution of the model. The features in the model haven't changed. The model hasn't been retrained. There hasn't been a cha...
I have a question about Difference-in-Difference estimation. It is well-known that the key identification assumption in Diff-in-Diff is the parallel trends assumption that says that in the absence of treatment, the evolution of the outcomes in the treated group would move in parallel to the control group. Of course thi...
I want to do a regression in R (RStudio), with equation: $ y = A + Bc^x$. Any idea on how to do such regression? Thank You
BACKGROUND: I have huge (>10000x10000px) pathology slides images with different sizes. Here is an example: You can find this specific example here. This images are pieces of tissue samples (biopsies) that are scanned with a high resolution device. Pathologists use them to look at the morphology of the cells and tell i...
Why is the square of the average of a set of positive numbers not always bigger than the average of the squares of the same set of positive numbers? I am not talking about in an asymptotic case.
I'm stuck on a problem I'm trying to "translate" into ML terms so as to dig deeper into the literature. Setup I have n samples for which I generate k $\in (0, 40]$ different low-dimensional representations ($\mathbf{x} \in \mathbb{R}^{7}$) using various simulation/scoring methods. I have a ground-truth ranking of all n...
How to calculate Signal to Noise Ratio? Is the mean to stdev ratio valid to be used as the basis for calculating SNR? What if a dataset or sample has a value of 0 all then add 1 random value other than 0 which is considered noise , for example it becomes [0,0,0,...,0,1] the samples/dataset is considered as clean signal...
I need to extract results from a SEM, but I'm struggling to read the results using lavaan package in R. More specifically, I have 3 latent variables and would like to know how can i reconstruct them using the results from the SEM. Below you can find my model: sem_model_100 <- ' Att_x =~ ATT_good_100 + ATT_imp...
I got this question from an interview and failed to give an answer. I have been thinking about this for a while and would love some help. I think we have the following: P(D (disease)) = 0.1%, P(TP or TN) = 99% And we want to know the following: P(D | P) which can be translated to: P(D and P)/P(P) or P(TP)/P(TP or FP). ...
I read many articles about SHAP values and I get the general theory behind it. However, there's something that I have a difficulty with. When we try to explain LR models, we explain it in terms of odds. For exmaple: Males have two times the odds of females, while keeping everything else constant. In SHAP summary plots,...
I am trying to calculate power for 150 samples where 75 are going to be in one group and 75 in another. I tried using the pwr package in R to get the power where I used the following code: pwr.anova.test(k=2, n =75, f=.1, sig.level=.05, power=NULL) k for me equals 2 because the 150 samples are divided into two groups ...
I have used the MATLAB regression learner application to do some stepwise regression with a 10-fold cross validation for feature selection. But now I want to code it myself and I'm confused about the algorithm! So I divide my data into 10-folds and then train my model using 9-folds and test in on 1 remaining fold. I do...
I found an outlier using the outlierTest function in the car package. However, I can see from the results that the Externally Studentized Residual and p-values. This is a result for the full model. rstudent unadjusted p-value Bonferroni p 348 5.872682 7.9377e-09 3.9689e-06 Cooks D Bar Plot: I have perfo...
I have some biological data of gene expression (GE) in the cells. I want to model GE behaviour as a linear model where GE in cell Y is dependent on GE in Cell X1, Cell X2, Cell X3 and many more. Just showing 3 for the simplicity. In the following figure GE of cell Y is plotted against the cell X1, X2 and X3. After l...
I understand that, given a set of iid random variables, the variance of the sum is equal to the sum of the variance. Likewise, I know that the variance of the mean is equal to the variance over n. My question is: if the variances of the respective random variables are not the same, is the variance of the mean still an ...
I am comparing the MAE of LASSO regression of multiple features vs. MAE of linear regression of each individual feature, and I am having trouble understanding why the LASSO MAE can be worse than some of the individual feature MAE, even on for the training set (where one single feature resulted in lower MAE than LASSO)....
I have been learning about ROC curves and had a doubt that can the ROC of 2 completely different data sets with different skew ( P/(P + N) where P and N are the actual positives and negative values) be the same? I am thinking that they cannot be the same since any 2 datasets with different skew will have different TPR ...
I have a few hundred variables representing different biomarkers. These variables have been measured in both cases and controls. The underlying units of measurement are not important, so I have standardized all variables (subtract mean, divide by SD). The standardization was done separately in cases and in controls, si...
See en.wikipedia.org/wiki/Sleeping_Beauty_problem for the statement of this problem. This seems to me to be a simple weighted average problem. Because the total number of days awake varies between 1 (Monday if heads) or 2 (Monday and Tuesday if tails on Monday). The frequency of occurrence (or the weight) that tossed c...
I am performing group lasso and need to double check if I include a dummy variable for the reference answer or not. For example: original question : no (0), Yes (1), Unknown (9). If I create 3 dummy variables, no (reference) (0/1), yes (0/1), and unknown (0/1), would I include all three in the group lasso or just the 2...
Say I have some data from an RCT related to a skills training program. The data are such that: Marginally randomized binary treatment z. Those with z = 1 attended the program; Single binary outcome of interest post_program_employment. Assume the randomization went great and we have unconditional ignorability. After c...
I ran two multiple regressions. The first with alm my variables. The second I removed one variable for which I had missing data for a lot of my cases. How can I explain why in the second multiple regression, an additional two variables become 'negative' in direction?
Is there a way to prioritize response variables in a random forest model, ideally in R? For example, suppose I want to predict tree height based on elevation, aspect, slope, and tree canopy cover. In theory, if I have areas of no vegetation, and I only use elevation, aspect, and slope, so no variable that would signify...
Using Python I have created two separate XGBoost probability models. From these two models, I compute a final value by multiplying the outputs (probabilities) together to give a probability of both events happening at the same time. I would like to be able to explain the output of the final value using Shapley values c...
After running my regression, none of my variables are significant so I was wondering if conparing t and p values could be a source of discussion instead... If so, can anything be inferred when a t value is larger than a p value? Or the other way around? Or what does it mean when the p and t values are almost equal?
Imagine the following study design: We have propagated $N$ plants. Each plant produces many seeds. From each plant, $M$ of the seeds are used to measure community composition of bacteria living within the seed in a destructive process. An additional $M$ seeds from each plant are allowed to germinate and the root length...
I want to be able to predict what a product's price would be based on its current sales listings and its sales history. The historical sales data would be a list of (date, price, quantity) The current listings data would be a list of (price, quantity) A very simple idea would be just to calculate the average quantity s...
I am trying to use a GAM to model average daily water temperature against day and habitat type in an estuary. I have temperature logger data over 115 days across three habitat types. I am using a GAM with a factor-smooth interaction to see how habitat-level smooths differ from the global-smooth for day. Habitat is incl...
I have a multilevel model with one significant interaction and several covariates. I understand the results from the summary fairly well, but I'm a bit stumped by the output in the visualization. Here is the output from the model: I used the cat_plot function in the interactions package in R to create the visualizatio...
Let $X_1,..., X_n$ be iid sample from the Poisson distribution with parameter $\lambda$. Find the UMVUE of $\lambda + \lambda^2$. I know $T := \sum\limits_{i=1}^n X_i$ is complete and sufficient for $\lambda$. Also, $T/n$ is the MLE of $\lambda$. By the invariance principle of the MLE, $T/n + T^2 / n^2$ is the MLE for ...
Let $\lbrace \mathbb{P}_\theta \rbrace_{\theta\in \Theta}, \Theta \subset \mathbb{R}$, be an identifiable parametric family of distributions with common support, where card$(\Theta)\geq 2$. Consider the family of estimators $\Delta = \lbrace \delta(\textbf{X}): \mathbb{E}_\theta \delta^2 <\infty, \theta \in \Theta \rb...
Just wanted to confirm that my understanding of Bayes is correct: People brought 200 chocolate chip cookies and 100 oatmeal raisin cookies. Total = 300 cookies. You also know that 150 (out of 200) of the chocolate chip cookies have M&Ms, and 25 (out of 100) of the oatmeal raisin cookies have M&Ms. Now if you see a cook...
Suppose we have two independent and identically distributed random variables $X$ and $Y$, both following the standard normal distribution. We take $1,000,000$ sample pairs and want to determine the correlation between $X$ and $Y$ in the pairs where $X + Y < 0$. I have performed a simulation-based approach and my result...
Learning Bayesian decision theory (specifically in Machine Learning) recently, couldn't figure out what do the posterior possibility $P(c|x)$ and the prior possibility $P(x|c)$ mean exactly. Anybody knows what $x$ and $c$ represent exactly in the possibility formula? (all I know is c stand for class and x stand for sam...
I have a half fraction factorial experiment for four factors, meaning I have eight experiments that I conduct. I expect that some of the responses are quadratic and not linear, thus I included centre points in my experiments, which introduces a ninth (zeroth) experiment. Indeed, quadratic responses seem possible from b...
There are many tutorials/packages in Python to detect anomalies in time-series given that the time-series is numerical. Currently, I have a time-series that is categorical, i.e. the time-series data said that, at time XXX the event AAA occurred. I want to detect anomalies for this data. For instance, if too many events...
Very deep models involve the composition of several functions or layers. The gradient tells how to update each parameter, under the assumption that the other layers do not change. In practice, we update all of the layers simultaneously. — Page 313, Deep Learning, 2016. Do we violate this assumption in practice? If so...
I built a linear mixed effect model with nlme with Body length, Habitat and Sex as fixed effects. Body length is added for body size correction while the other two both have two levels. In the random part of the model Population was used as a random effect (with 8 levels). To account for the violation of heterogeneity ...
I have successfully developed an image classifier using Deep Learning, in particular I have used a ResNet50V2 network with fine tuning transfer learning. I built up a database from the available imagine and then I tune the parameters. I split the database in train and test sets and using crossvalidation to investigate ...
I am currently working through Scornet2015 - Consistency of Random Forests. I'm having trouble understanding a specific inequality that is used in the proofs without further explanation. I am assuming it is something rather general and not immediately related to the topic at hand. As far as I can see, the inequality bo...
How can I deduce the posterior probability, up to a multiplicative coefficient, and how can I determine, without integral calculus, the normalization coefficient?
I have a dataset of 393 people and I am running binary logit regression. The goal of this regression is to examine which predictors are significant in predicting the dependent variable. The dependent variable is 1 = not taking a ride with public transport after the price increase 0 = taking public transport even if the...
I have multiple independent variables and my dependent variable. These are observed at an annual basis. I want to know how much the independent ones affect the dependent. What I am wondering most about is the time. Because the effect on the dependent variable is likely to be lagged, so that the Y in say year 2010 is de...
Basically I have data from two inventories (which have 7-10 questions on a likert scale). They were both administered at 4 different times. I am using GALMj package in jamovi to run a mixed model because I have some other categorical factors to consider. They cover overlapping (but not identical constructs). I am tryi...
Let $W$ be a random variable valued in $L^2[0,1]$ (an infinite dimensional function space). Take $W=\{W(t), t\in[0,1]\}$ on $[0,1]$. $$W(t)=\sum_{i=1}^\infty e_i(t) N_i, \quad \forall t\in [0,1]$$ where for all $i\in\mathbb N$, $$e_i(t)=\sqrt{2}\sin{(i-1/2)\pi t},$$ $$N_i \sim N(0,\lambda_i), \quad \lambda_i=[(i-1/2)\...
In ?lme4::ranef, it is stated: condVar: a logical argument indicating if the conditional variance-covariance matrices of the random effects should be added as an attribute. If condVar is TRUE, each data frame has an attribute called "postVar". If there is a single random-effects term for a given grouping factor, this...
I am having trouble with a step of a proof in the book Statistical Estimation Asymptotic Theory by Ibragimov and Has'minskii. Lemma 2.1: Let $T=T(X_1, ..., X_n)$ be an arbitrary statistic with $\mathbb{E}_\theta|T|<\infty$. Then $$ \mathbb{E}_\theta[T | X_2 - X_1, ..., X_n - X_1] = \int_{R^k}T(X_1 + \theta - u, ..., X...
In a 3x3 ANOVA (2 IV - each with 3 levels) is the interaction comparing 9 means or is it comparing the 2 main effects means?
I'm trying a DiD by comparing adjacent districts which lie on two sides of state border, before and after a policy. The scheme is following: state A introduced a policy in year t, while state B (adjacent state) did not. Now, state A has a district p (say) which shares a border with districts q and r of state B. The ide...
As I posted here in reference of which model fits better the assumption, I reached the conclusion that this model is the better: (lme(variable ~ time:group + group + time, random = ~ 1| subject) ,omitting the random slope because I only have 2 time points, following the advice from LuckyPal. My experiment is based on m...
I'm starting to have doubts regarding my approach to bootstrap a linear model on my rare events data. On repeated sampling, sometimes not all factor levels from a variable are represented and then this doesn't show coefficients. Because of unequal lengths, this causes problems when trying to create a matrix/data frame ...
Given a time series data $\{X_t\}_{t = 0}^\infty$, what does its moving average and moving standard deviation estimate when there is no assumption that $\mathbb{E}[X_t] = \text{const}, \forall t$? Suppose that $X_t\sim\mathcal{N}(\mu_t, \sigma^2)$, then its $N$-step MA is $N^{-1}\sum_{s = 0}^{N - 1}X_{t - s} \sim \math...
I have a distance matrix between paris of graphs computed by Graph Edit Distances. Besides, I have also a group or class label for each graph. Besides, each graph is assigned a target value in real number. I want to do a knn to predict this target value as a regression problem. How can I use both the distance matrix an...
I have a set of aggregate grade data and want to know if it is possible to determine if there are groups of samples of similar grade fraction using R studio. Some of the data: Column A contains sample labels (A1 contains 'Sample' as a title) Row 1 B1 to K1 contain sieve sizes in micrometers corresponding to sieve size...
I need some help with the model I created, please see the pic. As you can see, there are quite a few mediators in the model. Below is the indirect and total effects I'm getting. However, I'm wondering how should I report it in APA format in a research paper. In addition, is there a way to tease the indirect effects a...
The classifier I'm using has 3 possible label outputs - POSITIVE, NEGATIVE or UNKNOWN. For training data, the labels are only POSITIVE and NEGATIVE. What is the best way to handle evaluating the classifier output? I want to preserve the UNKNOWN label in general since I don't want low-confidence labels, but I want to al...
In the sciences very often we are testing for the presence of a predicted relationship, for example, that two variables are positively correlated ($\beta > 0$). Under traditional frequentist testing, one might set the null hypothesis to be $H_0: \beta = 0$, with a compound alternative hypothesis of $H_{1,a}: \beta > 0$...
I have the results of a dual choice test to evaluate oviposition preference. In the experimental arena, the same insect was offered simultaneously two plants (A and B) and the number of eggs laid on each plant was counted. So the assumption of independence would not be fulfilled and it seems to me more correct to use a...
I'm doing a a meta analysis on the mortality of heart failure patients and I'm using hazard ratios reported in the studies for the meta-analysis using REVMAN software. All of the hazard ratios and confidence interval of the studies are entered without a problem, except for only one study which the program can't accepts...
I'm building a predictive model with potentially multiple predictors. To that end, I try different, nested models, each with one more predictor than the previous one and compare their AICs. The AIC falls with each new predictor, but very slowly after the second one. Since the AIC is itself a random variable, I worry th...
I want to generate a standard normal distributed time-series. In addition the ACF of my timeseries should match a desired ACF. I have given lags 1 to 30 with the corresponding ACF-values. For further processing, the CDF of the timeseries should be the standard normal CDF. When i try filtering a standard normal distribu...
It seems to me like the concepts of incorporating prior beliefs about parameters VERSUS viewing parameters as latent random variables are two VERY separate concepts, and yet I've found that they're often confounded and treated as one. Can't we have prior beliefs about what the most likely value of a parameter is withou...
How to test if there's a statistically significant difference between two counts Hi! I'm struggling to test if two ratios on the same row of my dataset are significantly different from each other. I need to do this test for as many rows are in my dataset. The ratios, a and b, are in two separate columns of my data, and...
I was wondering how to assess residual normality of a repeated measures ANOVA. In some threads, users refer to Venables and Ripley: Residuals in multistratum analyses: Projections and recommend to extract residuals using proj() function. Is there any argument speaking against application of statistical normality tests,...
I have been working with a data file in R that contains two primary categorical variables : study location (study, 19 levels) which is a nuisance variable and race (4 levels) which is the outcome of interest. There are other variables in the model (age) but as they do not change I don't think they impact my question. I...
Is anyone aware of an approximation to the density function for the studentized range distribution https://en.wikipedia.org/wiki/Studentized_range_distribution ? I've found a fast approximation for quantiles made in excel https://www.ars.usda.gov/ARSUserFiles/60540520/RapidCalculationOfQ.pdf And I've found Fortran code...
When running a multiple regression analysis, why do we not need to correct the p-values for the amount of predictors in the model? summary(lm(mpg ~ disp + hp + drat + wt + gear, data=mtcars)) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 27.733774 6.596345 4.204 0.000274 *** disp ...
There is this question on the F-1 score, asking why we compute the harmonic mean of precision and recall rather than its arithmetic mean. There were good arguments in the answers in favor of the harmonic mean, in particular that it is suited to take the average of ratios and drops to zero whenever one of the other does...
Carlos Cinelli in this great post https://stats.stackexchange.com/a/384460/198058 gives an example of 3 different Data Generating Processes/Causal Models giving rise to the same joint distribution $(X,Y)$. Below is a snapshot of the 3 models taken from his post. I was able to work out that for each of the 3 models $P(...
If $X$ and $Y$ are independent binomial random variables with identical parameters $n$ and $p$, show analytically that the conditional probability of $X$, given that $X + Y = m$ is the hypergeometric distribution.
I like how pyro from Uber is structured, that it uses pytorch and how many features it brings. Pymc looks ok as well (but would not be my favorite with regards to the syntax and lifetime!) Do you have a book you would highlight for learning probabilistic programming, the variational inference, ... I found books using p...
I have modeled a count variable for a study that occurs over 3.5 years. The regression is a mixed effects ZINB with a random intercept for county and an offset for population. It was suggested that I add a dummy variable for the year but when I do, then it creates a problem with the quantile deviations. Here is the plo...
The answer to "Do we have to tune the number of trees in a random forest?" suggests using as large a number of trees in a forest as possible. Is there a rule-of-thumb for choosing this "large enough number of trees" a priori? Perhaps as a function of the number of observations and number of explanatory variables?
The policy was implemented all over the country and applies to everyone. Can I do difference in difference looking at yearly total emissions data of the country before the policy was implemented vs after the policy was implemented? without using a control group
My response is a ratio (length of a discoloration disease in the plant divided by the height of the plant), so is always (0, 1). Actually, sometimes it could be [0, 1), i.e., including zeros. As I have some zeros, I transformed them accordingly with betareg vignette: a useful transformation in practice is (y · (n − 1)...
I have run a gam regression on data that looks like the following: age frequency person_years 10 1 12796.5 12 2 13049.5 13 5 13220.0 14 13 13313.0 15 27 13516.5 16 18 13778.5 using the following gam function from mgcv incidence.gam <- gam( frequency ~ offset(log(person_years)) + s(age), data =...
I conducted a 2x1 chi square and need to report it in APA. There are 280 in the sample. Do I deduct the df from the sample size? e.g. X2 (1, N=279) Thank you
On the wikipedia page for Tukey's range test, under section Confidence Limits, a quantity $$q_{\alpha,k,N-k}$$ makes an appearance. Unfortunately, it is not defined in the main text. What is this quantity, and what is the formula to calculate it numerically?