Displaying 20 results from an estimated 6000 matches similar to: "mean and variance of ratio"
2007 Oct 01
2
non-linear model parameterization
Dear all,
I would like to fit a non-linear model of the form:
y=g*x/(a+b*x)
with nls().
However this model is somehow overparameterized and I get the error message about
singular gradient matrix at initial parameter estimates.
What I am interested in is to make inference about parameters b and g, so this has to be taken into account in the model formulation.
What options do I have?
Also, how is
2007 Jun 21
3
meta-analysis in R
I would like to combine time-series data to test for correlations and
interactions using random and fixed effects meta-analysis.
So, I am looking for the right packages and documentation.
I know about meta and rmeta packages of R.
Are there any more? What are the diffrences in brief?
Can you please suggest some references that could be used as a guide for
meta-analysis in R (or S-plus)?
2007 Oct 09
5
continue for loop in case of erros
Dear all,
I have a for loop which includes nls model estimation.
The loop breaks after the first non-convergence error.
How can I make the loop continue and try to estimate all models?
I suppose it should be sth like: if(...) { next }
but I have no idea how to setup the arguements...
Thank you!
Irene
2007 Nov 04
1
hierarchical mixed model
I would like to fit a 2-level mixed model:
yit=a+a[i]+a[it] +(b+b[i]+b[it])*xit+eps[it]
However, the variance of the second level components should depend on the group, i.e. sigma for a[it] and b[it] should be [i] specific.
I do not know whether this is conceptually right in the mixed model context...
In case it stands, how should the formula look like?
Also, the data are unbalanced with
2008 Feb 19
1
regression with error in predictor
Hi all!
I am trying to run a regression where the predictor values are not real
data but each is estimated from a different model. So, for each value I
have a mean and variance.
Which package/function should I use in this case?
Thank you!
Irene
[[alternative HTML version deleted]]
2008 May 02
3
points size in plots
Dear list,
I would like to produce a plot of variables where the size of the points
will be indicative of their standard errors.
How is that possible?
Thank you!
[[alternative HTML version deleted]]
2007 Feb 15
2
simpleR or usingR package by Verzani
I am a new R user and so I thought I could start with "Using R for
Introductory statistics" by Verzani.
In order to use some of the functions and datasets I have to install the
simpleR package which is is now inside the UsingR package. I did so
using
>install.packages("UsingR"). However, the functions such as
"simple.freqpoly.R" do not work.
I also tried to
2007 Oct 15
2
coef se in lme
Hi all!
How is it possible to estimate standard errors for coef obtained from lme?
Is there sth like se.coef() for lmer or what is the anaytical solution?
Thank you!
2007 Oct 07
1
constructing a self-starting non-linear model
Dear all,
I am trying to define a selfStart function for a non-linear model, which is a log-transformed SSmicmen model with multiplicative errors and so it is required to make them additive:
log(y)=log(a)+log(x)-log(1+x/b)
Any ideas about how to use the "peeling" method to derive the "initial" argument and get the initial values?
Thank you for being always there!:)
2007 Nov 28
1
interaction of continuous terms
Hi all!
this is a rather statistical question:
is it meaningful to consider an interaction effect between 2 continuous covariates?
for example: lm(y~x1+x2+x1:x2)
Should one of continuous x1, x2 be "transformed" to a categorical variable, i.e. be classified into groups?
Is it easier to interpret the effect if 1 or both are centered to the mean or z-transformed?
Thank you!
2008 May 08
2
acf function
Dear all,
I have an annual time-series of population numbers and I would like to
estimate the auto-correlation. Can I use acf() function and judge
whether auto-correlation is significant by the plots? The acf array, eg:
Autocorrelations of series 'x$log.s.r', by lag
0 1 2 3 4 5 6 7 8 9
10 11 12
1.000 0.031 -0.171
2007 Nov 07
1
mixed model testing
Is there a formal way to prove the need of a mixed model, apart from e.g. comparing the intervals estimated by lmList fit?
For example, should I compare (with AIC ML?) a model with seperately (unpooled) estimated fixed slopes (i.e.using an index for each group) with a model that treats this parameter as a random effect (both models treat the remaining parameters as random)?
Thank you!
2011 Mar 17
2
fitting gamm with interaction term
Hi all,
I would like to fit a gamm model of the form:
Y~X+X*f(z)
Where f is the smooth function and
With random effects on X and on the intercept.
So, I try to write it like this:
gam.lme<- gamm(Y~ s(z, by=X) +X, random=list(groups=pdDiag(~1+X)) )
but I get the error message :
Error in MEestimate(lmeSt, grps) :
Singularity in backsolve at level 0, block 1
2013 Mar 22
1
Trouble embedding functions (e.g., deltaMethod) in other functions
Dear R community,
I've been writing simple functions for the past year and half and have come
across a similar problem several times. The execution of a function within
my own function produces NaN's or fails to execute as intended. My conundrum
is that I can execute the function outside of my function without error, so
it's difficult for me, as a novice functioneer, to figure out
2005 Nov 07
1
Newbie on functions
Hi,
I'm trying to write a simple function like
case1 <- function (m, cov, Q, R) {
theta <- (acos(R/sqrt(Q^3)))
beta <- (-2)*sqrt(Q)*cos(theta/3)+m[1]/3
rho1 <- (-2)*sqrt(Q)*cos((theta+2*pi)/3)+m[1]/3
rho2 <- (-2)*sqrt(Q)*cos((theta-2*pi)/3)+m[1]/3
stderrb <- deltamethod( ~(-2)*sqrt(Q)*cos(theta/3)+x1/3,m,cov)
stderrr1 <- deltamethod(
2008 May 29
3
Datasets in R
I?m trying to find datasets that will give me residuals, after applying
the lm function, with no normality, non linearity, and heteroscedacity
so I can try to exemplify
those cases in the linear regression model. Can you give any advice on
what datasets would be appropiate? I can?t use the ones in the alr3
package because those have
already been seen in class.
Thank you very much :-)
natorro
2020 Sep 16
2
Installing in RStudio Server in Windows WSL2
Hi,
I am following the below instructions for setting up an RStudio server in
Windows.
https://support.rstudio.com/hc/en-us/articles/360049776974-Using-RStudio-Server-in-Windows-WSL2
I am a novice so I might be making an obvious mistake, but I am receiving
an error in step 3 of the RStudio server setup. I entered the below code
into ubuntu:
sudo add-apt-repository 'deb
2008 May 01
2
zero variance in part of a glm (PR#11355)
In this real example (below), all four of the replicates in one
treatment combination had zero failures, and this produced a very high
standard error in the summary.lm.
=20
Just adding one failure to one of the replicates produced a well-behaved
standard error.
=20
I don't know if this is a bug, but it is certainly hard for users to
understand.
=20
I would value your comments=20
=20
Thanks
=20
2009 Mar 30
2
Sliding window over irregular intervals
Dear all,
I have some very big data files that look something like this:
id chr pos ihh1 ihh2 xpehh
rs5748748 22 15795572 0.0230222 0.0268394 -0.153413
rs5748755 22 15806401 0.0186084 0.0268672 -0.367296
rs2385785 22 15807037 0.0198204 0.0186616 0.0602451
rs1981707 22 15809384 0.0299685 0.0176768 0.527892
rs1981708 22 15809434 0.0305465 0.0187227 0.489512
rs11914222 22 15810040 0.0307183
2011 Nov 03
2
variable transformation for lm
Hello,
I am doing a simple regression using lm(Y~X).
As my response and my predictor seemed to be skewed
and I can't meet the model assumptions. Therefore
I need to transform my variables.
I wanted to ask what is the preferred way to find out
if predictor and/or response needs to be transformed
and if yes how (log-transform?).
I found a procedure in "A modern approach to Regressoin
in