Displaying 20 results from an estimated 600 matches similar to: "profile plot in R"
2012 Feb 08
2
dropterm in MANOVA for MLM objects
Dear R fans,
I have got a difficult sounding problem.
For fitting a linear model using continuous response and then for re-fitting the model after excluding every single variable, the following functions can be used.
library(MASS)
model = lm(perf ~ syct + mmin + mmax + cach + chmin + chmax, data = cpus)
dropterm(model, test = "F")
But I am not sure whether any similar functions is
2011 May 13
4
Quick question: Omitting rows and cols with certain percents of missing values
Hi
naive question.
It is possible to get R command for omitting rows or cols with missing values present.
But
if i want to omit rows or cols with i.e . >20% missing values, I
could´t find any package-based command, probably because it is too
simple for anyone to do that manually, though not for me. Can anyone
please help me ?
- vickie
[[alternative HTML version
2003 May 01
4
var[i]
Dear all,
How could I use variables in a loop that their names are in a vector?
For example:
aaa <- 1:10
bbb <- aaa*2
ccc <- aaa+bbb
varn <- c("aaa", "bbb", "ccc")
m <- rep(NA, 3)
for (i in 1:length(varn)) m[i] <- mean(varn[i]) # wrong
thanks in advance
Juli
--
"Wars do not solve problems, wars generate even more problems"
2012 Oct 04
1
R help - Adding a column in a data frame with multiple conditions
Hi,
I am trying to add a column of numbers to a data frame in R with multiple
conditions.
Here is a simplified example df:
[A] [B] [C] [D] [E]
[1] 1 X 90 88
[2] 1 Y 72 70
[3] 1 Z 67 41
[4] 2 X 74 49
[5] 2 Y 42 50
[6] 2 Z 81 56
[7] 3 X 92 59
[8] 3 Y 94 80
[9] 3 Z 80 82
I would like column [E] to have a certain value (found either in [C] or
[D]) based on conditions in columns [A] *and* [B].
2011 Apr 02
4
help
Dear R Help group
I need to run a command line script from within R session. I am not clear
how i can acheive this. I tried shell and system function, but i am missing
something critical.can someone provide help?
My intention is to create a pdf file of a plot in R and then attach
existing files from my system as attachment into the newly created pdf file.
Any help would be greatly appreciated..
2009 Nov 12
1
Reading a data file one record at a time [SEC=UNCLASSIFIED]
Dear r-help,
I have a radar data file in the following format:
nrays
for (1 to n_rays)
{ some_data_info
for (1 to n_gates)
{ some_data_info}
}
N_rays=360 and n_gates=950
The data looks something like:
Header line1
Ray1 header
gate1 var1, var2,.....,varN
...
gate950 var1, var2,.....,varN
Ray2 header
gate1 var1, var2,.....,varN
...
2009 Dec 31
4
Obtaining partial output from a function that does not run to completion.
I have written a function that contains runs
lm()
vif() and
glm()
When the glm() blows up with an error message, I don't get the output from either the lm() or vf() even thought neither lm() nor vif() have any problems . How can I force the function to print sequential results rather than wait for the entire function to complete before listing the functhion's output?
Thanks,
John
2013 Jun 06
2
generating a bar chart with two axis for co-linear variable
Hello Dimitris,
I was goggling for some help on Sensitivity vs 1-specificity and saw your link.
I hope you can be of help to me in one of the issue that I am facing in generating combo chart(bar chart and plot). I am a novice and have some difficulty in getting this logic correct.
I am give a dataset (I am attaching a sample dataset).
I am using a barplot() and passing values for
2003 May 20
1
Extracting elements from an reStruct
Sorry if this is obvious, but my S skills aren't great and I haven't been
able to find it documented anywhere.
I want to write a new function for use with lme objects; the function will
simply calculate an ICC (aka "rho") for each level of a mixed-effects
model. What I need for this is pretty simple:
(c(var1..varn, residual)) / sum(c(var1..varn, residual))
where var1..varn
2006 Dec 07
2
How to use read.xls in R
Hello there,
In gdata package, read.xls is to be used for reading excel data (from
windows).
The following is my code:('C:/session/sampledata.xls' is where the file
is stored)
data1<-read.xls('C:/session/sampledata.xls',sheet=1)
and I got the following error message:
Error in system(cmd, intern = !verbose) : perl not found
Could you please tell me what I have done wrong and
2013 Jan 28
5
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hello everyone,
Can you please tell me if it is possible in LLVM to cast a `Value*` to an
`Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
In my particular piece of code:
Value* V1 = icmpInstrArray[i]->getOperand(0);
Value* V2 = icmpInstrArray[i]->getOperand(1);
if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){
...
2010 Aug 02
1
Convert an expression to a function
Hi John,
Here is my code practicing. Please give me some advises. Thank you.
Wu Gong
# Extract the function string
f.str <- sub("y~","",exprtext)
# Get arglist from the text
sp1 <- paste("\\",c(getGroupMembers(Arith),"(",")"),sep="")
sp2 <- getGroupMembers(Math)
sps <-
2003 Apr 09
3
How to count the number of parameters in a function
I have the following function:
Myfunc <- function(var1,var2,.....,varN)
{ .....
}
In the above function I have a variable number of parameters (N>2). How can
I count how many parameters have been entered?
Any help appreciated
Thanks
Arno
2009 Jul 27
2
How should i change the SAS Codes into R Codes?
Dear R users,
I have a SAS codes with several loops in it, and i hope to use R to do the
same task. The SAS codes are as follows,
/*to generate the dataset*/
DATA Single_Simulation;
DO se=0 to 1 by 0.01;
DO sp=0 to 1 by 0.01;
DO DR=0 to 1 by 0.01;
TR=(DR+sp-1)/(se+sp-1+1.0e-12);
Adjust_Factor=TR/(DR+1.0e-12);
OUTPUT;
END;
END;
END;
RUN;
/*to select some data*/
DATA
2016 Oct 11
3
Colapsar una matriz con NA en una única fila
Javier
Muchas gracias por su respuesta
Aunque no está funcionando, pues si ejecuto:
EncDTE1<- t.EncDTE1[ !is.na(t.EncDTE1$Var1),] obtengo Var1, Var2,
Var3,...Varn con datos "texto", NA, NA....NA
Pero al ejecutar
EncDTE1<- t.EncDTE1[ !is.na(t.EncDTE1$Var2),] obtengo Var1, Var2,
Var3,...Varn con datos NA,"texto", NA....NA
Estoy tratando de dar la vuelta con el loop
2011 Jun 07
2
What is wrong in m
Hi everyone,
What is wrong in below asterisk application? The output should be content of
field booth_status from table booths:
[extension-status]
exten => _X.,1,MYSQL(Connect connid 127.0.0.1 root password my-extensions)
exten => _X.,n,MYSQL(Query allow_call ${connid} SELECT extension_status FROM
mytable WHERE extension=${CALLERID(num)} ORDER BY id DESC LIMIT 1)
exten =>
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
The compilation error is : `error: ‘LD100’ was not declared in this scope.`
On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
> Hello everyone,
>
> Can you please tell me if it is possible in LLVM to cast a `Value*` to an
> `Instruction*/LoadInst*` if for example `isa<LoadInst>(MyValue)` is true?
> In my
2013 Jan 28
1
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hi Alexandru,
> The compilation error is : `error: ‘LD100’ was not declared in this scope.`
>
> On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu <
> alexandruionutdiaconescu at gmail.com> wrote:
>
>> Hello everyone,
>>
>> Can you please tell me if it is possible in LLVM to cast a `Value*` to an
>> `Instruction*/LoadInst*` if for example
2012 Jan 31
3
qemu-dm: unregister_iomem() broken?
This function (introduced quite a long time ago in
e7911109f4321e9ba0cc56a253b653600aa46bea - "disable qemu PCI
devices in HVM domains") appears to be completely broken, causing
the regression reported in
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1805 (due to
the newly added caller of it in
56d7747a3cf811910c4cf865e1ebcb8b82502005 - "qemu: clean up
MSI-X table
2011 Nov 29
2
how to transform a data file
Hello R people,
I have a data file with 101 numeric variables: one variable called IDN (the
individual's unique id number, which I need to retain, and which ranges
from 1000 to 1320; some numbers are obviously skipped), and V1 to V100
(each has a value of 0 or 1; these 100 variables represent sequentially
ordered days and whether a characteristic was present or absent--e.g., v1
is day 1 and a