# glm

1. ### Hypothesis difficulty

Let Y_{ij}=1 if the i^{\text{th}} child is classified as obese at the j^{\text{th}} occasion, and Y_{ij}=0 otherwise. The marginal probability of obesity at each occasion follows the logistic model log\frac{\Pr(Y_{ij}=1)}{\Pr(Y_{ij}=0)}=...
2. ### Which Analysis is Correct? (if any)

Hi! I have a design with two categorical iv and one continuous iv with a continuous dv. I wanted to see if there was a main effect or interaction from the categorical ivs, so I used the syntax: glm DV by IV1 IV2. There were no significant interactions or main effects. I wanted to then add...
3. ### MSE in GLM ANOVA

Sorry for the wall of text, but I'm trying to figure out how to proceed and feel as though I need to clue you in as best I can. Experimental Design: Whole plot: Tree species (Spp) Subplot: Location relative to canopy boundary (In/Out) Tests: 2-way ANOVA on data collected for several...
4. ### Plotting the results of GLM in R

I have this data plotted as a scatter plot in Excel I had done a regression in Excel, and the p value was 2.14E-05 while the R- value was 0.32. I was told the R value was too low compared to the significance of the p value, and was told to control for the dispersion of the data by running it...
5. ### Transform data for factorial two-way ANOVA/General Linear Model??

Hi, I'm not very statistically minded but I would really appreciate some guidance. I am needing to do several stat tests for my MSc dissertation. I have one dependent variable (species count) and one independent variable (year), but two species. I have constructed a basic count against year...
6. ### Repeated measures design - correct analyses and GLM assumptions

Hi all, I have collected data for a study but I am not sure now if I am carrying out the correct analyses. I have tried for the last few days to figure out whether my analyses are correct, but I keep getting a lingering doubt that they are not and so I thought I will ask this question because...
7. ### Indices with data bound between -1 and +1

Hi all, I would really appreciate some advice on how to deal with my data. I would like to compare data calculated from an index which is bounded by -1 and +1. I was surprised to see that previously published use of this index has been analysed using standard ANOVA, because I was led to...
8. ### Help with glm--- Simple Logistic Regression

Hi All! Thanks for reading. I wanted to compare month of sample collection (April, May, June, and July) to presence/absence data (coded in binary dummy variables). I tried to run a Simple logistic regression, but realized that the output table with p values, etc all report for may, June, and...
9. ### GLM in SPSS

Hi, I am trying to do something quite simple but I am so confused about how to enter my data into SPSS and which test to use. I have four subjects whose performance is measured at ten time points and I want to know if their scores are changing. Normally I would enter my data with one subject...

11. ### Help with model Matrix GLM

Hey guys been browsing the forums for a while, and usually find what I need! This is a tad more specific though so Ive made an account!! I've been puzzled by the form of the model for a while.. The model states that the response depends upon y~smoke + drink +smoke:drink +age:smoke. The model...
12. ### Binomial response variable with 3 continuous and 1 categorical predictor. Best test?

Hello I have a binomial response variable. Predictors are composed of 3 continuous variables (the results of a Principle Components Analysis of habitat structure variables) and 1 categorical variable (habitat type e.g. grazed or ungrazed). I want to test whether the 3 habitat variables have...
13. ### Type I and Type II SS for ANOVA, non-statistician

Good Afternoon (non-statistician here), I have to automate a GLM within an Excel sheet that will be analyzing some toxicity data, resulted from scoring cell aberrations. And, I'm using MiniTab to validate the estimates. MiniTab is using Type I (sequential) SS and Type II (adjusted) SS within...
14. ### How to model weighted average ratios in the [0,1] interval

Maarten Buis on this forum provided great insight on how to model percentages in the [0,1] interval (http://www.talkstats.com/showthread.php/52986-Modelling-percentages-in-the-closed-interval-0-1). I now have a similar but somewhat different problem, in that I'd need to model weighted average...
15. ### Maximum likelihood estimation and GLMs - can you help me refresh my rusty memory?

Hi all, I was wondering if you can help me refresh my rusty memory on maximum likelihood estimation. I think I remember the basic concept from my university courses in a previous life. Banal example: we want to fit a normal distribution to the observations 3,4,5, then N(4,1) is the best...
16. ### Data analysis with a GEE, is my method valid?

Hi everyone, I’ve been doing some statistical analyses in R on some data. It’s for use in a manuscript I’m hoping to get published in a biological journal. Unfortunately, the tests I ended up having to run are kind of at the limit of my understanding, so I was hoping that I could run through...
17. ### GLM with non-parametric post hoc testing?

Hi guys, I have a question regarding the appropriate use of comparisons for independent samples (3 factor levels), please. Overall sample size is N=546, subsamples: 218 or 228 or 100), convenience sampling, stratified. I use ANOVA with post hoc Tukey, if Levene indicates variance...
18. ### Comparing count data and cultivars in R

Hi, I'm trying to analyse an experiment with this setup: A plant species with 16 different cultivars of 4-5 plants per cultivar (completely randomised within greenhouse, no blocks) An insect species that was allowed to spread freely for 4 days on the plants. The insect number per plant was...
19. ### How to analyse deviance (GLM in R)

Hi! This might be quite basic, but how do I analyse the fit of my GLM from the deviance? In the summary of my model, I get a deviance of 140.1 (df.resid = 52). Can I tell from these numbers, if the fit is acceptable? Thanks in advance for any replies!:tup:
20. ### Fit of generalized linear model (Poisson distribution)

Hi guys Can anyone tell us how to evaluate the fit of our generalized linear model with a poisson distribution? We can't really tell if the model is a good fit or not. Do you use the deviance to answer this question? If so, what does it tell us in the following example? Thank you in advance...