Displaying 20 results from an estimated 40000 matches similar to: "Which variable exist after random"
2005 May 17
4
Combinations with two part column
Dear R-helpers,
I am a beginner using R.
This is the first question in this list.
My question, Is there possible to make combinations with two part column?
If I have a number 1,2,3,4,5,6,7,8. I need the result something like below:
1,2,3,4,5 6,7,8
1,2,3,4,7 5,6,8
2,3,4,5,6 1,7,8
1,2,3,6,7 4,5,8
1,2,3,4,8 5,6,7
3,4,6,7,8 1,2,5
....
I would be very happy if anyone could
2011 Sep 02
2
How to keep the same class?
Hello
Please see the example below
> class(testX)
[1] "matrix"
> class(testX[1,])
[1] "numeric"
Why not matrix? What am I missing here? Is there a way to keep the same
class?
The reason for the question is that I want to implement a k-step ahead
prediction for my own routines and R wrecks does not seem to like [1,] as
shown below.
>
2013 Feb 18
2
mtext unicode failure
Readers,
How to solve this unicode input error please?
> postscript("~/tmp/test.eps",width=100/25.4,height=100/25.4,horizontal=FALSE,onefile=TRUE,paper="special")
> testx<-seq(1:5)
> testy<-seq(1:5)
> plot(testy~testx)
> mtext('text (O?)\n more text',side=3,line=1)
Warning messages:
1: In mtext("text (O?)\n more text", side = 3, line =
2012 Oct 10
2
lm on matrix data
Hi,
I have a question about using lm on matrix, have to admit it is very
trivial but I just couldn't find the answer after searched the mailing
list and other online tutorial. It would be great if you could help.
I have a matrix "trainx" of 492(rows) by 220(columns) that is my x,
and trainy is 492 by 1. Also, I have the newdata testx which is 240
(rows) by 220 (columns). Here is
2012 Mar 21
2
glmnet: obtain predictions using predict and also by extracting coefficients
All,
For my understanding, I wanted to see if I can get glmnet predictions
using both the predict function and also by multiplying coefficients
by the variable matrix. This is not worked out. Could anyone suggest
where I am going wrong?
I understand that I may not have the mean/intercept correct, but the
scaling is also off, which suggests a bigger mistake.
Thanks for your help.
Juliet Hannah
2012 May 16
1
survival survfit with newdata
Dear all,
I am confused with the behaviour of survfit with newdata option.
I am using the latest version R-2-15-0. In the simple example below I am building a coxph model on 90 patients and trying to predict 10 patients. Unfortunately the survival curve at the end is for 90 patients. Could somebody please from the survival package confirm that this behaviour is as expected or not - because I
2011 Jul 09
3
Using str() in a function.
Using str() in a function.
I am in the early phase of learning R, and I find I spend a lot of time
trying to figure out what is actually in objects I have created or read in
from a file. I'm trying to make a simple little function to display a
couple of things about a object, let's say the summary() and the str(),
sequentially, preferably without a bunch of surplus lines between them. I
2006 Dec 13
2
persp() problem
Dear list,
I have a problem on persp()
x <- u1data #first coloum in attached data
y <- u2data #second coloum in attached data
f <- function(x,y){qgev(pnorm(rhoF*qnorm(pnorm((qnorm(y)-rho2*qnorm(x)/sqrt(1-rho2^2))))
+sqrt(1-rhoF^2)*qnorm(0.95)),-0.3935119, 0.4227890,
0.2701648)}
z <- outer(x,y,f)
persp(x,y,z)
The R will display:
"Error in persp.default(x, y,
2016 Sep 18
2
Problem Samba 4.5
thanks for your attention.
temporarily with the following script I'm looking at myself.
#!/bin/bash INTERVAL=180 LOG=true function log { if $LOG; then echo $1 fi }
while true; do testx=`ps -auxw | grep "smbd" | wc -l` testy=`netstat -ap |
grep samba | grep sock | wc -l` if test "$testx" -gt "50" -a "$testy" -gt
"50" ;then echo "samba
2009 Jun 08
3
caret package
Hi all
I am using the caret package and having difficulty in obtaining the results
using regression, I used the glmnet to model and trying to get the
coefficients and the model parameters I am trying to use the
extractPrediction to obtain a confusion matrix and it seems to be giving me
errors.
x<-read.csv("x.csv", header=TRUE);
y<-read.csv("y.csv", header=TRUE);
2005 Feb 01
2
assign connections automatically
Hi all,
I am trying to create a function that will open connections to all
files of
one type within the working directory.
I've got the function to open the connections, but I am having a
bugger of a
time trying to get these connections named as objects in the workspace.
I am at the point where I can do it outside of the function, but not
inside, using assign. I'm sure I'm
2011 Sep 08
0
Consistently printing the name of an object passed to a function; & a data-auditing question
Dear folks--
I always seem to find that I spend more than half my time making sure my
input date is in the right form, properly aligned, with no bizarre features.
You know the drill: five kinds of missing values, three of them documented.
An alpha mistype in one numeric field turns 30,000 numbers into factor
levels. SPSS conversion turns 250 factors nicely into R factors, except 3
have levels
2005 Mar 22
3
mixtures as outcome variables
Dear R-users,
I have an outcome variable and I'm unsure about how to treat it. Any
advice?
I have spending data for each county in the state of California (N=58).
Each county has been allocated money to spend on any one of the
following four categories: A, B, C, and D.
Each county may spend the money in any way they see fit. This also means
that the county need not spend all the money that
2002 May 30
1
hclust.identify problem
Having some problems with using hclust.identify on my data, I revert to trying
it out on the example in the help manual. My result is still the same (as with
my own data):
data(iris)
hci <- hclust(dist(iris[,1:4]))
plot(hci)
testx<-identify.hclust(hci)
Error in rect.hclust(x, k = k, x = x$x, cluster = cluster[, k - 1], border
= "red") :
k must be between 2 and 0
2012 Sep 14
0
[LLVMdev] Problem using llvm::cl::bits class with gcc 4.7
Hi,
I'm currently working on the KLEE tool that uses LLVM (2.9 because that's
what KLEE currently uses) and in particular I'm having an unexpected
problem with the llvm::cl::bits class. I try something like this...
enum testx
{
A,B
};
cl::bits<testx> queryLoggingOptions("option",cl::values(
clEnumVal(A,"this is a"),
2016 Apr 02
0
p values from GLM
On 4/2/2016 11:07 AM, David Winsemius wrote:
>> On Apr 1, 2016, at 5:01 PM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>>
>> On 01/04/2016 6:46 PM, Bert Gunter wrote:
>>> ... of course, whether one **should** get them is questionable...
>> They're just statistics. How could it hurt to look at them?
> Like Rolf, I thought that this utterance
2008 Aug 25
8
Two envelopes problem
A friend of mine came to me with the two envelopes problem, I hadn't
heard of this problem before and it goes like this: someone puts an
amount `x' in an envelope and an amount `2x' in another. You choose one
envelope randomly, you open it, and there are inside, say ?10. Now,
should you keep the ?10 or swap envelopes and keep whatever is inside
the other envelope? I told my friend
2006 Feb 09
3
Xp Home hack + Domain join
Hello fellows,
Does anyone of you has found the hack to permit win xp home edition to
join a domain controller.
I found somewhere on the net a software that does this.
But it cost 145 $ US, so like the upgrade... ( the only difference in
that i will not give the money to Bill Gates)
My problem is with the password modification.
Every times someone does change his password, he has to go onto the
2016 Sep 30
1
Migrating, Upgrading & Testing Samba 4 PDC/BDC
On Thu, September 29, 2016 09:57, Charish Patel wrote:
> If you mean regular Microsoft AD, the reason is simple: cost.
> Management sadly does not want to shell out the money for it.
>
We went to Samba for the simple reason that we could not figure out
how much the licensing costs would be to upgrade our ancient W2KAS
domain controller.
Back in the day Microsoft shipped access licences
2011 Sep 15
2
Returning the name of an object passed directly or from a list by lapply
Dear folks:
Let?s suppose I want a function to print return the name of the object
passed to it.
> myname <- function(object) {out<-deparse(substitute(object)); out}
This works fine on a single object:
> O1 <-c(1:4)
> myname(O1)
[1] "O1"
However it does not work if you use lapply to pass it the same object from a
list:
> O2 <-c(1:4)
> object.list <-