Displaying 20 results from an estimated 200 matches similar to: "Calculation of slope for Poisson regression"
2011 Feb 03
0
Need advises on mixed-effect model ( a concrete example)
Dear R-help members,
I'm trying to run LME model on some behavioral data and need
confirmations about what I'm doing...
Here's the story...
I have some behavioral reaction time (RT) data (participants have to
detect dome kind of auditory stimuli). the dependant variable is RT
measured in milliseconds. 61 participants were tested separated in 4 age
groups (unblanced groups,
2009 Apr 01
3
How to prevent inclusion of intercept in lme with interaction
Dear friends of lme,
After so many year with lme, I feel ashamed that I cannot get this to work.
Maybe it's a syntax problem, but possibly a lack of understanding.
We have growth curves of new dental bone that can well be modeled by a
linear growth curve, for two different treatments and several subjects as
random parameter. By definition, newbone is zero at t=0, so I tried to force
the
2012 Sep 14
1
linear mixed-effects models with two random variables?
Dear R users,
Does anyone knows how to run a glmm with one fixed factor and 2 random
numeric variables (indices)? Is there any way to force in the model a
separate interaction of those random variables with the fixed one?
I hope you can help me.
#eg.
Reserve <- rep(c("In","Out"), 100)
fReserve <- factor(Reserve)
DivBoulders <- rep
2010 Sep 16
1
Help for an absolutely r-noob
Hello together,
I am an absolute noob in R and therefore I need help urgently. I have
received a script from my tutor with plot functions in it. However, I can'
manage to adapt these plots.
The hole script is as follows:
setwd("E:/")
##### (1) Read data ###
dat <- read.table("Komfort_Tatsaechliche_ID_Versuchsreihe_1.txt",
header=TRUE,
sep="\t",
2003 Apr 08
2
Basic LME
Hello R Users,
I am investigating the basic use of the LME function, using the following example;
Response is Weight, covariate is Age, random factor is Genotype
model.lme <- lme (Weight~Age, random=~ 1|Genotype)
After summary(model.lme), I find that the estimate of Age is 0.098 with p=0.758.
I am comparing the above model with the AOV function;
model.aov <- aov (Weight~Age + Genotype)
2008 Jul 14
0
nlme, lme( ) convergence and selection of effects
Hi all,
I''ve been trying to fit a mixed effects model and I''ve been having problems.
=>My aim:
to know whether states atributes, political parties and individual atributes
affect the electoral results of men and women candidates.
I use candidates as replications for states and for political parties.
=>Response: Percentage of valid votes casted to each
2007 Apr 11
0
Error with corCompSymm and lme fit for repeated measures
Dear R Friends,
I need help with an error associated with corCompSymm in an lme fit.
I am using a mixed effects model to analyze a split-plot with
repeated measures and would like to fit with the compound symmetry
correlation structure. This problem doesn't occur when using
corAR1 or any of the other structures. I would greatly appreciate
help on how to solve this issue.
Here's my
2007 May 24
4
Function to Sort and test AIC for mixed model lme?
Hi List
I'm running a series of mixed models using lme, and I wonder if there
is a way to sort them by AIC prior to testing using anova
(lme1,lme2,lme3,....lme7) other than by hand.
My current output looks like this.
anova
(lme.T97NULL.ml,lme.T97FULL.ml,lme.T97NOINT.ml,lme.T972way.ml,lme.T97fc.
ml, lme.T97ns.ml, lme.T97min.ml)
Model df AIC BIC logLik
2004 Jul 23
2
confidence intervals for linear combinations when using lme
Hi
I really hope someone can help me.
I have just started to work with S-plus, and have not yet understood how it
really works. I am now trying to fit a mixed effects model with lme. My goal
is to compare four different groups, at several different time points, and I
therefore would like to create confidence intervals for linear combinations
of my estimated parameters (as I usually do with
2011 Mar 29
0
Plotting 95% Confidence Intervals around RMA slope
Hi,
I'm regressing various body dimensions upon body mass using the 'lmodel2' function, as I'm keen to obtain both OLS and RMA slope values. I also wish to create a plot of the regressions, with the 95% confidence interval of both the slope and intercept. I know how to plot 95% ci bands of the OLS slope using lm with the 'predict' function and 'matlines'. Does
2007 Nov 06
0
Bootstrap CI of Slope in a Weighted Simple Linear Regression
Greetings,
I would like to use the "boot" function to generate a bootstrap confidence
interval for the slope in a SLR that has a zero intercept. My attempt to do
this is shown below. Is this the correct implementation of the boot function
to solve this problem? In particular, should I be doing anything with the
residuals in the "bs" function (e.g., using weighted residuals)?
2008 Dec 12
1
How can we predict differences in a slope, given that the random component was significant?
Dear R users,
Using R lme function, I found that both fixed and random effects of variable
A on variable B are significant. Now, I'd like to analyze what variables
are predicting differences in the slope. In other words, I'd like to know
what variables (e.g., variable C) are predicting individual differences in
the effects of A on B. I have many data points for A and B for each
2010 Jul 23
1
calculate slope of line
Dear All,
I fear that this is a really easy question but I do seem to go around in
circles..
I have 2 points on a plot and would like to calculate the slope of the
line drawn through these 2 points.
that cant be so hard?!
Thank you in advance,
Katrin
--
Katrin Fleischer
Vrije Universiteit Amsterdam
Faculty of Earth and Life Sciences
Subdepartment Hydrolgy and Geo-Environmental Sciences
Room
2012 Oct 26
0
Problems getting slope and intercept to change when do multiple reps.
library(ROCR)
n <- 1000
fitglm <- function(iteration,intercept,sigma,tau,beta){
x <- rnorm(n,0,sigma)
ystar <- intercept+beta*x
z <- rbinom(n,1,plogis(ystar))
xerr <- x + rnorm(n,0,tau)
model<-glm(z ~ xerr, family=binomial(logit))
*int*<-coef(model)[1]
*slope*<-coef(model)[2] # when add error you are suppose to get slightly
bias slope. However when I change
2005 Mar 01
1
constraining initial slope in smoother.spline
Hello. I want to fit a smoother spline (or an equivalent local
regression method) to a series of data in which the initial value of the
1st derivative (slope) is constrained to a specific value. Is it
possible to do this? If so, how?
Bill Shipley
[[alternative HTML version deleted]]
2017 Aug 09
0
Random slope random intercept plot after clmm regression
0down votefavorite
<https://stats.stackexchange.com/questions/296569/how-to-obtain-random-slope-random-intercept-plots-for-categorical-response-varia#>
I'm trying to generate a random slope random intercept plot after ordinal
regression using the clmmfunction from the ordinal package in R. I have
aggression levels which are categorical with six levels. Earlier, I made
random intercept
2017 Sep 29
0
Error in Lordif: slope is missing or negative
Hi all
I am not an experienced user of R.
I am trying to perform DIF analysis using Lordif and I get the follow error:
> GroupDIF <- lordif(resp.data=Resp, group=Group, criterion="R2", pseudo.R2="McFadden", R2.change=0.02)
Iteration: 500, Log-Lik: -137340.437, Max-Change: 0.00119
EM cycles terminated after 500 iterations.
(mirt) | Iteration: 1, 14 items flagged for DIF
2002 Mar 10
1
multiple pairwise slope comparisons
Hello,
I have a linear model with different slopes for different treatment
groups. I need to pairwise compare the different slope estimates for
the different treatment groups. Is there a package that does pairwise
comparisons of slope coefficients, making the appropriate adjustments in
the P values?
Thanks,
John.
--
==========================================
John Janmaat
Department of
2003 Aug 11
0
Gradient of the slope of a surface
Hello All
I am currently looking at spatial data - Chorophyll A concentration in sea
water over a wide geographic area. These data are used to determine the
location of ocean fronts and hence where tuna are located. A front is
identified by a steep gradient in the change in chloroA concentration. I
have been looking at these data qualitatively using persp, contour, and
image but would like to
2007 Apr 09
1
testing differences between slope differences with lme
hello
i have a mixed effect model which gives slope and intercept terms for 6
groups (diagnosis (3 levels) by risk group(2 levels)). the fixed part of
the model is --
brain volume ~ Diagnosis + Risk Group + (Risk Group * age : Diagnosis) - 1
thus allowing risk group age/slope terms to vary within diagnosis and
omitting a nonsignificant diagnosis by risk group intercept (age was
centered)