[R] Simultaneous OLS fitting with constraints on coeffcients

2012-04-16 Thread Allan Sikk
Hi, Is it possible in R to fit two equations simultaneously: y1 = a1 - b1*t and y2 = a2 - b2*t so that the following constraint applies: a1/b1 = a2/b2 ? Thanks __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS

Re: [R] "pos" in panel.text

2011-10-10 Thread Allan Sikk
> Hi Allan, > > Please could you send the modified code where now it should appear x > and y coordinates?. > I do not fully understand the error message you get. > > Regards, > Carlos Ortega > www.qualityexcellence.es <http://www.qualityexcellence.es> > > 2011

Re: [R] "pos" in panel.text

2011-10-10 Thread Allan Sikk
=4, y=2" for your case. > Additionally you can use ltext() function which is explained in the > same panel.text() help. > > > Regards, > Carlos Ortega > www.qualityexcellence.es <http://www.qualityexcellence.es> > > 2011/10/10 Allan Sikk mailto:a.s...@ucl.ac.uk>

[R] "pos" in panel.text

2011-10-10 Thread Allan Sikk
Hi, I need to vary the placements of data labels but I cannot assign a vector to "pos" option. Any vectors work fine with "cex", for example. What could be the problem here? xyplot(Npop~Narea, data=size, scales=list(x=list(log=TRUE), y=list(log=TRUE), xlab=expression(N[A]), ylab=expression(N[

Re: [R] Connecting points over missing observations in Lattice

2011-10-08 Thread Allan Sikk
I'd like to keep all observations for y1... >> >> I'm trying to plot connected time series of two variables in a >> lattice plot: >> xyplot(y1 + y2 ~ t, data=size, type="b") >> >> y2 has missing data for some of the observations and some points are >> therefore not connected. It would make theore

[R] Connecting points over missing observations in Lattice

2011-10-08 Thread Allan Sikk
Hello, I'm trying to plot connected time series of two variables in a lattice plot: xyplot(y1 + y2 ~ t, data=size, type="b") y2 has missing data for some of the observations and some points are therefore not connected. It would make theoretical sense to connect the points - is there a way of d