Displaying 20 results from an estimated 10000 matches similar to: "Regression with 3 measurement points"
2012 May 06
2
Interaction plot between 2 continuous variables
I have two very strong fixed effects in a LMM (both continuous variables).
model <- lmer( y ~ time + x1+x2 + (time|subject))
Once I fit an interaction of these variables, both main effects
disappear and I get a strong interaction effect.
model <- lmer( y ~ time + x1*x2 + (time|subject))
I would like to plot this effect now, but have not been able to do so,
reading through ggplot2 and
2004 Oct 01
4
gnls or nlme : how to obtain confidence intervals of fitted values
Hi
I use gnls to fit non linear models of the form y = alpha * x**beta
(alpha and beta being linear functions of a 2nd regressor z i.e.
alpha=a1+a2*z and beta=b1+b2*z) with variance function
varPower(fitted(.)) which sounds correct for the data set I use.
My purpose is to use the fitted models for predictions with other sets
of regressors x, z than those used in fitting. I therefore need to
2013 Feb 12
1
Exact p-values in lm() - rounding problem
I need to report exact p-values in my dissertation. Looking at my lm()
results of many regressions with huge datasets I have the feeling that
p-values are rounded to the smallest value of "2e-16", because this p-value
is very common.
Is that true or just chance? If it is true, how do I obtain the "true"
unrounded p-values for these regressors?
m1 <- lm(y ~ x1+x2+x3+4+x5,
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
A copy of this question can be found on Cross Validated:
https://stats.stackexchange.com/questions/645362
I am estimating a system of seemingly unrelated regressions (SUR) in R.
Each of the equations has one unique regressor and one common regressor. I
am using `gmm::sysGmm` and am experimenting with different weighting
matrices. I get the same results (point estimates, standard errors and
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
Generally speaking, this sort of detailed statistical question about a
speccial package in R does not get a reply on this general R
programming help list. Instead, I suggest you either email the
maintainer (found by ?maintainer) or ask a question on a relevant R
task view, such as
https://cran.r-project.org/web/views/Econometrics.html . (or any other
that you judge to be more appropriate).
2012 Nov 21
1
Regression: standardized coefficients & CI
I run 9 WLS regressions in R, with 7 predictors each.
What I want to do now is compare:
(1) The strength of predictors within each model (assuming all predictors
are significant). That is, I want to say whether x1 is stronger than x2,
and also say whether it is significantly stronger. I compare strength by
simply comparing standardized beta weights, correct? How do I compare if
one predictor is
2012 Oct 07
3
Robust regression for ordered data
I have two regressions to perform - one with a metric DV (-3 to 3), the
other with an ordered DV (0,1,2,3).
Neither normal distribution not homoscedasticity is given. I have a two
questions:
(1) Some sources say robust regression take care of both lack of normal
distribution and heteroscedasticity, while others say only of normal
distribution. What is true?
(2) Are there ways of using robust
2010 Sep 08
3
Regression using mapply?
Hi,
I have huge matrices in which the response variable is in the first
column and the regressors are in the other columns. What I wanted to do
now is something like this:
#this is just to get an example-matrix
DataMatrix <- rep(1,1000);
Disturbance <- rnorm(900);
DataMatrix[101:1000] <- DataMatrix[101:1000]+Disturbance;
DataMatrix <- matrix(DataMatrix,ncol=10,nrow=100);
#estimate
2017 Mar 10
2
named arguments in formula and terms
Hi, we came across the following unexpected (for us) behavior in
terms.formula: When determining whether a term is duplicated, only the
order of the arguments in function calls seems to be checked but not their
names. Thus the terms f(x, a = z) and f(x, b = z) are deemed to be
duplicated and one of the terms is thus dropped.
R> attr(terms(y ~ f(x, a = z) + f(x, b = z)),
2012 Jul 05
4
Exclude missing values on only 1 variable
Hello,
I have many hundred variables in my longitudinal dataset and lots of
missings. In order to plot data I need to remove missings.
If I do
> data <- na.omit(data)
that will reduce my dataset to 2% of its original size ;)
So I only need to listwise delete missings on 3 variables (the ones I am
plotting).
data$variable1 <-na.omit(data$variable1)
does not work.
Thank you
2016 Apr 04
1
Test for Homoscedesticity in R Without BP Test
On Mon, 4 Apr 2016, varin sacha via R-help wrote:
> Hi Deepak,
>
> In econometrics there is another test very often used : the white test.
> The white test is based on the comparison of the estimated variances of
> residuals when the model is estimated by OLS under the assumption of
> homoscedasticity and when the model is estimated by OLS under the
> assumption of
2008 May 28
1
Fixing the coefficient of a regressor in formula
Dear R users,
I want to estimate a Cox PH model with time-dependent covariates so I am
using a counting process format with the following formula:
Surv(data$start, data$stop, data$event.time) ~ cluster(data$id) + G1 +
G2 + G3 + G4 + G5 +G6
Gs represent a B-spline basis functions so they sum to 1 and I can't
estimate the model as is without getting the last coefficient to be NA,
which
2008 Jul 25
1
Selecting the first measurement only from a longitudinal sequence
Dear R-help mailing list,
I have this problem, I have a joint longitudinal and survival data of the form say
ID Time Failuretime Censoringind longitudinalmeasure
1 0 35 0 123
1 10 35 0 120
1 25 35 1 123
2 0 23 0 100
2 10 23
2011 Nov 14
1
lme4:glmer with nested data
Dear all,
I have the following dataset with results from an experiment with individual bats that performed two tasks related to prey capture under different conditions:
X variables:
indiv - 5 individual bats used in the experiment; all of which performed both tasks
task - 2 tasks that each individual bat had to perform
dist - 5 repeated measures of individual bats at 5 different distances from
2012 Jun 05
1
data analysis problem
Dear R users,
I have data on 4 types of interest rates. These rates evolve over
time and across regions of countries . So for each type of interest
rates I want to run a regression of rates on some other variables.
So my regression for one type of interest rate will be I_{ij}_t= a
+regressors +error term.
where I_{ij}_t is the absolute difference in rates between two
locations i and j at time
2005 May 25
3
Problem with systemfit 0.7-3 and transformed variables
The 'systemfit' function in systemfit 0.7-3 CRAN package seems to have a
problem with formulas that contain transformed (eg. log) variables. If I
have my data in a data frame, apparently systemfit doesn't "pass" the
information of where the variables should be taken to the transforming function.
I'm not entirely sure if this is a bug or just a limitation, I was just
2007 Oct 30
1
R segmented package
Most of the data sets I'm dealing with exhibit a time trend.
We would like to get rid of the time trend.
The plot shows in some cases a monotonic increase of the dependent variable
with time. This is the easiest case.
In some other cases the plot shows a time trend where the dependent variable
changes slope 4-5 times along the observations measurement period.
I've attempted a segmented
2012 Jun 14
2
finite mixture modeling
Hi all,
I have a question, is there any R package dealing with latent transition analysis with both categorical and continuous indicators? So far what I found from GOOGLE are only packages dealing with latent class analysis. So what about the longitudinal situation? Any way we could look at the transition from one class to another across time points?
Thank you very much.
ya
[[alternative
2012 Oct 22
1
glm.nb - theta, dispersion, and errors
I am running 9 negative binomial regressions with count data.
The nine models use 9 different dependent variables - items of a clinical
screening instrument - and use the same set of 5 predictors. Goal is to
find out whether these predictors have differential effects on the items.
Due to various reasons, one being that I want to avoid overfitting models,
I need to employ identical types of
2013 May 02
2
ARMA with other regressor variables
Hi,
I want to fit the following model to my data:
Y_t= a+bY_(t-1)+cY_(t-2) + Z_t +Z_(t-1) + Z_(t-2) + X_t + M_t
i.e. it is an ARMA(2,2) with some additional regressors X and M.
[Z_t's are the white noise variables]
How do I find the estimates of the coefficients in R?
And also I would like to know what technique R employs to find the
estimates?
Any help is appreciated.
Thanks,