Displaying 20 results from an estimated 200 matches similar to: "putting mean and sd on a histogram"
2008 Jun 10
3
fitting periodic 'sine wave' model
I have been attempting to estimate the periodic contribution of an
effect to some data but have not been able to fit a sine wave within R.
It would be nice to start by being able to fit a sine wave with an
amplitude and frequency.
x<-seq(0,20,by=0.5)
y<-2*sin(2*pi*.5*x) #amplitude =2, frequency=0.5
# This failed to converge
r<-nls(y ~ A*sin(2*pi*F*x), start=list(A = 1, F = 1),
2008 Apr 11
1
polygons on scatterplot3d
Does anyone have any experience plotting complex polygons on a
scatterplot3d display? I would like to present some spatially binned
data in a 3-d type plot with background polygons (i.e.. a filled
coastline map). I can get the coastline onto the plot window as a
line type but cannot figure out how to fill the shape. I'm certain it
may be possible but might require a bit of digging
2009 Sep 16
3
apply function across two variables by mult factors
Greetings,
I am attempting to run a function, which produces a vector and
requires two input variables, across two nested factor levels. I can
do this using by(X, list(factor1, factor2), function), however I
haven't found a simple way to extract the list output into an
organized vector form. I can do this using nested loops but it isn't
exactly an optimal approach.
Thank you
2008 Mar 15
1
Conditionals for Errors or error flags
Greetings,
I have been working on a script that conducts repeated statistics and
plots to my data. In this case it is sub-setting the dataframe by
month.
The intent is to develop a custom analysis and plotting that I can run
on a large number of data sets.
Unfortunately, a small portion of my subsets (~1%) cause an error with
one of the wrapped subroutines that results in the whole
2009 Jun 12
2
Automate a data load and merge
Hi R list,
I would like to automate, or speed up the process from which I take
several separate datasets, stored in .csv formate, import and merge
them by a common variable. So far I have greatly sped up the loading
process but cannot think of a way to automate the merger of all
datasets into a common data.frame.
My apologies if this has been covered, any R search suggestions are
2008 Jan 18
1
html search not working
Sorry the first email had no subject.
I've searched around and havent had much luck trying to explain why my
HTML search no longer works. If I use
?cor.test
it is unable to display the webpage. Is this a java problem? I am
running windows xp, and use Internet explorer for my default browser.
Thanks
--------------------------------------------------
David Kowalske Jr
Graduate Research
2009 Feb 10
1
lattice shingle with time and date format
Hi R-Users,
I have a time series of bivariate observations (x,y,t). I've
developed a few panel routines to explore certain aspects of the data,
and now would like to break the time series up into smaller chunks to
explore the temporal trends. I would like to know if anyone has any
experience breaking up time series with lattice.
Base graphics offers coplot, utilizing the
2008 Nov 17
2
How to calculate the linear distance between 2 points
Deemed colleagues
I would appreciate your help with a sentence to calculate the linear
distance between 2 geographical points (coordinates in UTM).
In advance thnks for your attention,
--
Ricardo Bandin Llanos
rbandin@udec.cl
Estudiante - Magíster Cs. m. Pesquerías
Universidad de Concepción, Región del Bio-Bio, Chile
Celular: (0056-41) 97949957
[[alternative HTML version deleted]]
2008 Dec 07
1
custom panel help in lattice
Hi,
I am having an issue with a custom panel for lattice. The problem
comes when I try passing a groups argument.
Here is the custom panel, a wrapper for smooth spline. I copied
panel.loess and replaced the loess arguments with smooth.spline().
[Note: I would like to use the cross-validation fitting properties of
smooth.spline.]
library(lattice)
2009 Oct 07
3
[LLVMdev] Instructions that cannot be duplicated
Is there a current way to specify that an instruction or function call
cannot be duplicated and thus any optimizations that might want to
duplicate this instruction would fail?
The problem deals with barrier in OpenCL 1.0. One of the conditions of
using barrier is that if a barrier exists inside of control flow, every
thread in a work-group must execute the barrier instruction(6.11.9).
2008 Dec 04
2
Plotting a kriging on a map
Hi list,
Well, this time I’ve a doubt with mapping generation.
I was already able to read and plot shapefiles, plot point on this map. All
this without any problems, but now I want to do something that I think, only
Golden Software Surfer is capable of.
I would like to plot a kriging result on the existing map (map script
below). Well I looked for on the net, but I was not able to be sure of
2010 May 26
1
problem with not in in subseting dataframe
Hi all,
I have a problem while subsetting a dataframe that is
while I am using *%in%* condition like
*stemp<-subset(temp, obj1 %in% obj2,select=c(temp))*
this is working and giving results that what ever is there is both *obj1*and
*obj2*
**
**
but I want to get values which is there in *obj1* but not in *obj2 *
can anyone help me how to get those values.
i tried with *%o%* but i am not
2008 Oct 31
1
loglogistic cumulative distribution used by survreg
Dear all,
What is the cumulative distribution (with parameterization) used within
survreg with respect to the log-logistic distribution?
That is, how are the parameters linked to the survivor function?
Best regards,
Mario
[[alternative HTML version deleted]]
2012 Oct 25
5
trying ti use a function in aggregate
Hi -I am using R v 2.13.0. I am trying to use the aggregate function to
calculate the percent at length for each Trip_id and CommonName. Here is a
small subset of the data.
Trip_id Vessel CommonName Length Count
1 230 Sunlight Shad,American 19 1
2 230 Sunlight Shad,American 20 1
3 230 Sunlight Shad,American 21
2012 Feb 03
0
zeroinfl package - Year effect and precision
Hello. I am using the zeroinfl package to fit a zero-inflated negative binomial. The explanatory variables are Year and Depth x STemp (interaction). I am in need of guidance for extracting the year effect and the associated precision.
Thank you for your time.
Cheers,
Laura
2010 Jul 10
1
contourplot by year
Hi - I have a dataframe with 4 variables - long, lat, temp and year. I would
like to plot temperature by lat and long in contour plots by year. There
are 391 data points. When I try
contourplot(temp~long*lat|year,data=hake,cuts=10,labels = TRUE,contour =
TRUE,pretty = TRUE,region=TRUE)
I get plots with dots around by data, but not contour lines or filled in
regions.
I have also used the
2007 Sep 27
1
crashing R through lattice
I have been crashing R while using lattice. My system consists of a Mac
Intel, R 2.5.1, lattice 0.15-5, and I plot through the default quartz.
R crashes after plotting several lattice functions. Has anyone else
encountered this problem and does anyone know the cause, or a solution?
Is this a lattice:mac, lattice:quartz, Lattice:me issue?
example...
This crashes my system after plotting.
2012 Nov 15
1
confidence intervals with glmmPQL
Hi - I am using R version 2.13.0. I have run several GLMMs using the glmmPQL
function to model the proportion of fish caught in one net to the total
caught in both nets by length. I started with a polynomial regression full
model with three length terms: l, l^2, and l^3 (l=length). The length terms
and intercept were the fixed effects and the random effect was a paired haul
(n=18).
2012 Nov 27
1
GLM Coding Issue
Dear all,
I am having a recurring problem when I attempt to conduct a GLM. Here is what I am attempting (with fake data):
First, I created a txt file, changed the directory in R (to the proper folder containing the file) and loaded the file:
#avoid<-read.table("avoid.txt",header=TRUE);avoid
# treatment feeding avoid noavoid
#1 control nofeed 1 357
#2
2008 May 27
2
GMM estimation
Hello there!!!
Sorry to bother you all with such question and difficulties that I have been
facing on.
Recently I have been searching for packages to run GMM estimatives with R.
I have been searching for such packages for a while, but since I am a new
user of R system,
my quest so far was unsucessful.
That´s why I had decided to ask to this forum. Hope that anyone could help
me!
I know that