Displaying 20 results from an estimated 100 matches similar to: "Problem with reshaping data from wide to long format"
2003 Jan 20
2
ave across columns
Hi:
How do I find average across three columns such as weight1, weight2,
weight3 (20 people, each person has three different measures)? They have
NA's also. Thanks
Tom, Univ of Pittsburgh, ttrut at yahoo.com
2013 Nov 12
1
How to replace NA's data with some value
Hi all,
I have a data set with missing value. I would like to estimate those
missing value by using normal ratio method.
Below is part of my data:
AS BL Serdang Jhr Phg Target station
0 0.0 12.8 0.0 23.7 0.0
6 0.0 81.7 0.2 0.0 NA
0 1.5 60.9 0.0 0.0 15.5
1 13.0 56.8 17.5 32.8 6.4
4 3.0 66.4
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
Hi,
I am an R newbie and one thing I am having trouble with binding variables that
I have created within one data frame into a new data frame when using
na.omit(). To illustrate this problem I will give the example I am working on
and the approah I have been using:-
data.frame1<-filepath....
attach(data.frame1)
#create a new variable using a function
new.variable<-rep(1,length(weight3))
2004 Oct 14
2
fidelity of generated raster images (R and perl)
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Why R: Yes, I can do this more efficiently and precisely
with a perl module like Image::PBM. Been there,
done that many times, etc. (Just humor me.
I'm trying to do this with R for a number of reasons.)
Problem:
2007 Mar 07
1
2 commits - libswfdec/swfdec_script.c test/trace
libswfdec/swfdec_script.c | 14 ++++++++++++--
test/trace/Makefile.am | 2 ++
test/trace/gotoframe.swf |binary
test/trace/gotoframe.swf.trace | 13 +++++++++++++
4 files changed, 27 insertions(+), 2 deletions(-)
New commits:
diff-tree 12348410a3509928a6e8e4c8ca00292a58ff542c (from 46e62d4410c20c19774a45758d8ebf11cd0bdf96)
Author: Benjamin Otte <otte@gnome.org>
2010 Jul 16
1
Weighted densityplot?
I'm trying to plot a series of densities using/comparing differing weights. I see the reference to weights and subscripts, but I don't understand how to implement that. My data are of the form:
I, J, Actual, Distance, Subset, Weight1, Weight2, ...
I'm trying to see the effect of the distance distribution (Actual by Distance) compared to the various weighted distributions
2005 May 28
1
Forcing ticks in plot for hclust object outside the limits
Hello!
I have the following problem.
I would like to plot the hclust object "hcd" (bellow, at the end of the
mail) with ticks at seq(0.05,0.25,by=0.05). I tried using the code
plot(hcd)
and
plot(hcd,axes=FALSE)
axis(2,seq(0.05,0.25,by=0.05))
In both cases, the resoult is the same, ticks at 0.05 and 0.25 are not
printed. I tried changing the ylim argumet in plot, however I got a
2005 Oct 26
0
Explenation of WRR parameters
Guys
Oppologies for the cross post.
I''ve been scouring the docs coming with the wrr patches and for the
life of me I can''t figure out why there are 8 parameters for each
class.
<snip>
weight1, min1, decr1, incr1,
weight2, min2, decr2, incr2
</snip>
According to the docs these parameters are handled the same way, but
looking at the example scripts there are
2004 Jan 19
0
problem with wrr+prio
I have set up wrr successfully on my bridge/shaper machine. That much
works fine. I originally used sfq in the inner classes. However, there
was a problem with high-bandwidth connections (web downloads,
bittorrent) starving low-bandwidth low-latency connections like ssh. I
would like to use prio or similar to prioritize the interactive traffic,
but it does not seem to work. I have tested with
2008 Sep 06
2
Hopefully an easy error bar question
Hi im trying to add error bars to my barplots, there very basic, i have a few grapghs where the y variable is different but on all the X variable is Age (Adult and Juvenile) however this is split into two levels so i have males and females, so my graph basically has four bars on it.
I know how to add eror bars for instance when there is only one level eg lookng at the diffrence between male and
2012 Nov 29
1
Error 0ps.factor: level sets of factors are different
I have two data sets: "new" and "combo". Within both data set, each row
pertains to a unique individual. The "combo" data set is a subset of the
"new" data set, meaning that all individuals within "combo" are within "new"
but not all individuals within "new" are within "combo". Thus, nrow(new) >
nrow(combo).
Each
2003 Sep 04
1
scatter.smooth error
Hello
When I run
scatter.smooth(jitter(weight), jitter(height2), span = .25, evaluation
= 50, pch = '.')
I get the type of graph I thought I would get, but also a warning.....
k-d tree limited by memory. ncmax= 528
I always get concerned when there are warnings I don't understand.
What's a k-d tree? Is this something to be concerned about?
Thanks
Peter
Peter L. Flom,
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
libswfdec/swfdec_font.c | 4
libswfdec/swfdec_font.h | 2
libswfdec/swfdec_js_movie.c | 8 -
libswfdec/swfdec_script.c | 225 +++++++++++++++++++++++++++++++++++++++----
libswfdec/swfdec_script.h | 14 ++
test/.gitignore | 1
test/trace/Makefile.am | 6 +
test/trace/height4.swf |binary
test/trace/height4.swf.trace | 5
2009 Jul 27
0
help about package "reldist" (Relative Distribution)
Dear R users:
i try to use package "reldist" to measure wage distribution.
In package "reldist" :
y mean sample from comparison distribution
yo mean sample from reference distribution
but I would like to compare more than two years ( total of fifteen years,
from 1979, 1981, 1983..........to 2007)
how should i correct my programs, then i could compare fifteen year's
2009 Jul 30
0
package "reldist" version 1.5-5.1 : how to not just compare two years's wage distribution
Dear all users,
I read all R programs and texts in "Relative Distribution Methods" website,
but I encounter two problems when I used it.
then I used "Google" to try to find any solutions about the two
problems,but I got no useful hints.
1、
In package "reldist"
y mean sample from comparison distribution
yo mean sample from reference distribution
but I
2002 Oct 09
3
proc mixed vs. lme
Dear All,
Comparing linear mixed effect models in SAS and R, I found the following
discrepancy:
SAS R
random statement random subj(program); random = ~ 1 |
Subj
-2*loglik 1420.8 1439.363
random effects
variance(Intercept) 9.6033 9.604662
2009 May 01
0
Confusion going from Stata -> R
Dear list,
I am trying to replicate some Stata results but having a tough time doing it in R. The goal is to obtain a difference-in-difference estimate in a model with simple state fixed effects. The "state" variable is a factor, but some levels are missing. It appears that Stata automatically recognizes this and works around it. It also automatically pick "ME" as the base
2008 Jun 05
1
nls() newbie convergence problem
I'm sure this must be a nls() newbie question, but I'm stumped.
I'm trying to do the example from Draper
and Yang (1997). They give this snippet of S-Plus code:
Specify the weight function:
weight < - function(y,x1,x2,b0,b1,b2)
{
pred <- b0+b1*x1 + b2*x2
parms <- abs(b1*b2)^(1/3)
(y-pred)/parms
}
Fit the model
gmfit < -nls(~weight(y,x1,x2,b0,b1,b2),
2015 Oct 07
0
brass and chert compiled / xapian port to Interix
Report by Eric Lindblad 06-10-2015
http://www.ericlindblad.blogspot.com
cf: http://permalink.gmane.org/gmane.comp.search.xapian.general/9885
modifications allowing for brass and chert to compile on SFU Interix 3.5 (modified)
[code change not performance critical]
/xapian-core-1.2.21/backends/brass/brass_check.cc
/xapian-core-1.2.21/backends/chert/chert_check.cc
#include <climits>
+
2015 Sep 11
0
xapian-core-1.0.23 compiled on Interix / Eric Lindblad
Report by Eric Lindblad 11-09-2015
http://www.ericlindblad.blogspot.com
I compiled xapian-core-1.0.23 today on Interix.
'gmake check' summary
PASS: btreetest, quartztest, stemtest, termgentest
FAIL: apitest, internaltest, queryparsertest
MS XP SP3 HOME
modified SFU Interix 3.5 w/ getopt.h, inttypes.h, & stdint.h copied
over from SUA Interix for Vista (and newer) into