Displaying 20 results from an estimated 127 matches for "1hp".
Did you mean:
16p
2006 Sep 15
2
prediction interval for new value
Hi,
1. How do I construct 95% prediction interval for new x values, for example - x = 30000?
2. How do I construct 95% confidence interval?
my dataframe is as follows :
>dt
structure(list(y = c(26100000,
60500000, 16200000, 30700000, 70100000, 57700000, 46700000, 8600000,
10000000, 61800000, 30200000, 52200000, 71900000, 55000000, 12700000
), x = c(108000, 136000,
2006 Oct 19
2
How to get multiple Correlation Coefficients
Hi
I have used a polycor package for categorical correlation coefficients.
I run the following script. But there were no results.
Could you tell me how to correct the script?
Thanks in advance,
vars <- names(sdi)
for (i in 1:length(vars)) {
for (j in 1:length(vars)) {
paste(vars[i]," and ", vars[j])
polychor(vars[i], vars[j])
# corr
}
}
--
Kum-Hoe Hwang, Ph.D.Phone :
2006 Apr 17
1
ksoftirqd
...4&5R<V]N86P@1G)E96UA:6P@0T$Q*S I!@DJ
MADB&]PT!"0$6''''!E<G-O;F%L+69R965M86EL0''1H87=T92YC;VTP''A<-.38P
M,3 Q,# P,# P6A<-,C Q,C,Q,C,U.34Y6C"!T3$+, D&`U4$!A,"6D$Q%3 3
M!@-5! @3#%=E<W1E<FX@0V%P93$2,! &`U4$!Q,)0V%P92!4;W=N,1HP& 8#
M500*$Q%4:&%W=&4@0V]N<W5L=&EN9S$H,"8&`U4$"Q,?0V5R=&EF:6-A=&EO
M;B!397)V:6-E<R!$:79I<VEO;C$D,"(&`U4$`Q,;5&AA=W1E(%!E<G-O;F%L
M($9R965M86EL($-!,2LP*08)*H9(AO<-`0D!%AQP97)S;VYA;"UF<F5E;6%I
M;$!T:&%W=&4N8V]M,(&?,...
2006 Nov 29
2
Dummies multiplied with other variable
Hi,
I would like to estimate something like y = a + b*d2*y + c*d3*y where
the dummies are created from some vector d with three (actually many
more) levels using factor(). But either there is included the variable
y or d1*y. How could I get rid of these?
Example:
x = c(1,2,3,4,5,6,7,8)
y = c(3,6,2,8,7,6,2,4)
d = c(1,1,1,2,3,2,3,3)
fd = factor(d)
lm(x ~ fd*y)
gives:
Coefficients:
(Intercept)
2006 Sep 14
1
time varying covariates
Hello,
I am trying to model an intensity function with time-varying covariates.
Before, I have successfully defined a log likelihood function for a
Power-Law Process (lambda(t)=alpha*beta*t^(beta-1)) with two paramters
and no covariates for a repairable systems with failure times (t).
This function was maximized with R optim. No problem!
But now I want to include a covariate indicating a
2006 Sep 20
2
Poission distribution
The expected number of bladder cancer over next 20 years a tire
industry is 1.8. Poission distribution is assumed to hold and 6
reported deaths are caused by bladder cancer among the employees.
Trying to find how unusual this event is.
> ppois(q=6, lambda=1.8, lower.tail = TRUE, log.p = FALSE)
[1] 0.9974306
not sure if ppois is the right one to use and the parameters...
thx much
2006 Oct 24
2
colinearity?
I'm sorry to all those who are tired of seeing my email appear in need of
help. But, I've never coded in any program before, so this has been a
difficult process for me.
Is there a simple function to test for colinearity in R? I'm running a
logistic regression and a linear regression.
Thanks for the help!
[[alternative HTML version deleted]]
2006 Sep 12
2
(no subject)
Hi,
I have a problem with aggregate.
x <- aggregate(t1,list(t2,t3,t4), mean)
z<-x[,3]
I want z to be a vector but it is a factor.
I've tried to use as.vector(z,mode="numeric") but then the numbers get
scrambeled.
Any help is appriciated
/anders
2006 Sep 15
2
missing data codes
Dear all,
I am new to R. I wish to use R's multiple imputation to deal with missing
data. I have a data set with the size around 300 observations and 150
variables. I checked the help function in R and could not locate how to
write the codes for this. can anyone give a hand?
Do appreciate your time and kindness!
Q.
[[alternative HTML version deleted]]
2006 Sep 13
2
kendall's w
Hi,
I try to calculate Kendall's W coefficient and I have a bizarre error.
little.app.mat<-matrix(c(1,3,4,2,6,5,2,4,3,1,5,6,3,2,5,1,5,4),nrow=3,byrow=TRUE)
print(kendall.w(little.app.mat[-1,]))
>>> Kendall's W for ordinal data
>>> W = 0.7753623Error in if (is.na(x$p.table)) { : argument is of
length zero
2006 Sep 19
2
bubble plot problems
Hi,
I'm having some problems with a bubble plot (ps package). I don't want
tick marks on all four sides (just two), I want to have a smaller font
size, and I would like to be able to define bubble sizes shown in the
legend (now it shows 0, 0, 0, 9.747 and 4265.757 which is not really
convenient. Passing some of the standard plot arguments didn't help (in
fact, nothing changed).
2007 Jan 20
3
Insert R logo
Dear all R users,
I want to insert the R logo in every graphic that I made in my Statistical
analysis using R. Can anyone tell me whether is it possible or not and if
possible how to do this? your help will be highly appreciated.
Thanks and Regards,
Arun
[[alternative HTML version deleted]]
2006 Sep 20
4
Calculating mean together with split
Hi
I have a table called npl containing results of simulations.
It contains about 19000 entries and the structure looks like this:
NoPlants sim run year DensPlants
1 6 lng_cs99_renosterbos 1 4 0.00192
.
.
.
it has 43 different entries for sim and year goes from 1 to 100, and run
from 1 to 5.
I would like to calculate the mean of DensPlants for each
2006 Sep 20
5
multiple lines and plot
Hi. Please, how can I put together 2 or more lines at the same
scatterplot ? Example: measures of protein intake (quantitative) of 4
children over 30 days, by day. How to plot all children at same graphic:
Protein X Time ? Is there any command like "overlay" ?
Thank you,
Mauricio
2006 Sep 27
3
Converting text to numbers
Hi,
I have Forecast Class and Observed Class in a data matrix as below.
> Sample1
FCT OBS
1 1 5
2 2 4
3 3- 3+
4 3 3
5 3+ 3-
6 4 2
7 5 1
I want to find the difference between Observed and Forecast Classes.
How can I get this done?
I tried to following to convert the 1 through 5 classes, to 1 through 7
for both OBS and FCT column.
> Sample1$OBS2 <- Sample1$OBS
2007 Feb 08
5
remove component from list or data frame
Sorry to ask such a simple question, but I can't find the answer after
extensive searching the docs and the web.
How do you remove a component from a list? For example say you have:
lst<-c(5,6,7,8,9)
How do you remove, for example, the third component in the list?
lst[[3]]]<-NULL generates an error: "Error: more elements supplied
than there are to replace"
Also,
2006 Sep 19
3
Reading a file in R
Dear R helpers,
I am trying to read a CSV file in R called EUROPE (originally an Excel
file which I have saved as a CSV file) using the command
EUROPEDATA <- read.csv("EUROPE.csv")
EUROPE.csv is basically a matrix of dimension 440*44, and has a line of
headers, i.e. each column has a name.
Using read.csv I can't load the data into R properly. Although the first
20 columns or
2006 Sep 11
3
Extracting overdispersion estimates from lmer amd glm objects
Dear list,
I am needing to extract the estimate of overdispersion (deviance / residual degrees of freedom or c-hat) from multiple model objects - so they can then be used to compare the extent of overdispersion among alternative models as well as calculate qausi-AIC values. I have been unable to do this, despite consulting a number of manuals and searching the R-help. I am imaging that in
2006 Sep 13
7
inserting columns in the middle of a dataframe
Dear R users:
Is there a built-in and simple way to insert new columns after other columns
in a dataframe?
I.e. currently I have:
V1 V2 V3 V4
[1,]
[2,]
Etc.
But I want
V1 V5 V2 V3 V4
[1,]
[2,]
Etc.
Can this be done in one line?
Jon Minton
[[alternative HTML version deleted]]
2006 Sep 12
2
extract a value from vector
A quick question, please!
How do you extract a certain value of vector?
i.e. x = c(2,5,3,6,21,3,6,24, ....)
How do you get the 1st one (which is 2); the 5th one (which is 21); etc?
thx much,
ej
[[alternative HTML version deleted]]