Displaying 11 results from an estimated 11 matches for "weight2".
Did you mean:
weight
2010 Mar 25
1
Problem with reshaping data from wide to long format
...22,
43.753041021, 42.631667022, 43.964726468, 38.665918845, 35.758478283,
31.642950399, 33.31580307, 41.171896621, 34.11696779, 33.872158362,
42.70435576, 41.153390371, 43.830697643, 35.223807744, NA, 37.210599185,
44.775833501, 30.659131352, 40.399049686, 44.368921711, 41.850601771,
37.850971621), weight2 = c(46.614122964, 49.810266131, NA, 51.600870342,
49.009289571, 44.041339142, 52.877022993, NA, 49.99494035, 40.401355811,
43.25422231, 53.470358871, 52.762958304, 52.586173237, 50.286215216,
NA, 44.273412353, 40.473174437, 51.956636192, 46.237083243, 40.679582358,
NA, NA, 53.008553857, 47.91981271...
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
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
...roblem 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))
for (x in 1:length(new.variable))
{f<-((((age1[x]-7)*(weight[x]-mw))+((age2[x]-7)*(weight2[x]-mw))+((age3[x]-7)*
(weight3[x]-mw)))/(((age1[x]-7)^2)+((age2[x]-7)^2)+((age3[x]-7)^2)));
new.variable[x]<-f}
#then bind it into the existing old data frame
data.frame2<-cbind(data.frame1,newvariable)
rm(dat.frame1)
attach(data.frame2)
#everything o.k. so far but now the problem part... I...
2009 Jul 27
0
help about package "reldist" (Relative Distribution)
...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 wage
distribution?
fig2b <- reldist(y=mu1981$b1,yo=mu1979$b1,ci=F,smooth=0.4,
yowgt=mu1979$weight2,ywgt=mu1981$weight2,
bar=TRUE,
yolabs=seq(-1,3,by=0.5),
ylim=c(0,2.5),cex=0.8,
ylab="Relative Density",
xlab="Proportion of the Original Cohort")...
2009 Jul 30
0
package "reldist" version 1.5-5.1 : how to not just compare two years's wage distribution
...pare more than two years
( A total of fifteen years, from 1979, 1981, 1983, 1985..........to 2007)
how should I correct my programs in the below,
then I can compare fifteen years's wage distribution?
fig2b <- reldist(y=mu1981$b1,yo=mu1979$b1,ci=F,smooth=0.4,
yowgt=mu1979$weight2,ywgt=mu1981$weight2,
bar=TRUE,
yolabs=seq(-1,3,by=0.5),
ylim=c(0,2.5),cex=0.8,
ylab="Relative Density",
xlab="Proportion of the mu1979 Cohort")
title(main="Fig2(b)",ce...
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 (Subset*WeightX by Distance)
I presume I and J are the subscripts to the weight Variable in densityplot. If anyone has a code snippet of densityplot using weight...
2013 Nov 12
1
How to replace NA's data with some value
...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 2.0 0.3 NA
Now I want to replace those NA's, with the estimation values by using this
formula:
weight$v6
<-(weight1*AS)+(weight2*BL)+(weight3*Serdang)+(weight4*Jhr)+(weight5*Phg);
Targetstation
but I still could not replace the NA's. My problem is, how do I replace
those NA's with another value?
Thank you so much for your help and attention.
Regards,
Dila
[[alternative HTML version deleted]]
2002 Oct 09
3
proc mixed vs. lme
...81 80 80 80
18 WI 80 82 82 82 81 81 81
19 WI 85 86 87 86 86 86 86
20 WI 77 78 80 81 82 82 82
21 WI 80 81 80 81 81 82 83
;
/*---Data Set 3.2(b)---*/
data weight2;
set weights;
time=1; strength=s1; output;
time=2; strength=s2; output;
time=3; strength=s3; output;
time=4; strength=s4; output;
time=5; strength=s5; output;
time=6; strength=s6; output;
time=7; strength=s7; output;
keep subj program time strength;
run;
proc sort d...
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),
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 different values for these.
I had a look at the formulas, and have gotten my own set of reasonable
values, based on the calculations, but do I place the...
2004 Jan 19
0
problem with wrr+prio
...e2=0
declare -i NUM=$WRR_MAX_CLASSES;
while [ $NUM -ge 1 ]; do
HNUM=$(printf %X $NUM)
tc class change classid 8001:$HNUM dev $DEV \
wrr min1=0.5 max1=1.0 decr1=0.0000000254 \
incr1=0.00083333333 weight1=1.0 \
min2=0.1 max2=1.0 decr2=0 incr2=0 weight2=1.0
NUM=$NUM-1
done
}
shape $IFACE_IN dest
shape $IFACE_OUT sour
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/