Displaying 20 results from an estimated 500 matches similar to: "Dummies in R"
2012 Nov 19
9
Stepwise analysis with fixed variables
Hello,
How can I run a backward stepwise regression with part of the variables
fixed, while the others participate in the backward stepwise analysis?
Thank you, Einat
--
View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015.html
Sent from the R help mailing list archive at Nabble.com.
2018 Feb 09
1
Optim function returning always initial value for parameter to be optimized
Hello,
I'm trying to fminimize the following problem:
You have a data frame with 2 columns.
data.input= data.frame(state1 = (1:500), state2 = (201:700) )
with data that partially overlap in terms of values.
I want to minimize the assessment error of each state by using this function:
err.th.scalar <- function(threshold, data){
state1 <- data$state1
state2 <- data$state2
2011 Nov 15
1
Remove thw data from the dataframe
Hi,
I want to remove the entire row from the dataset if any of the row contains
blank or NA
my dataset look like
State Year Y X2 X3 X4 X5 X6
State1 1960 27.8 397.5 42.2 50.7 78.3 65.8
State2 1960 29.9 413.3 38.1 52 79.2 66.9
State1 1961 29.8 439.2 40.3 54 79.2 67.8
State2 1961 30.8 459.7 39.5 79.2 69.6
State1 1962 31.2 492.9 37.3 54.7 77.4 68.7
State2 1962 528.6 38.1 80.2 73.6
State1 1963
2012 Mar 27
1
help in replacing for llop
Hi
I have records like like this
X1 X2 State
34 72 state1
9 63 state1
49 31 state1
60 34 state1
80 73 state1
60 20 state2
59 87 state2
88 20 state2
71 66 state2
65 56 state2
59 16 state1
60 100 state2
I want to get the summarize value like mean median histogram for X1 and X2
based on state. I'm using FOR loop for this. Is there any method to remove
for loop and use apply or any
2015 Jul 27
4
Como modificar valores en un data frame
Estimad en s, quería realizar una consulta
Dado un data frame llamado aves, como puedo sustiuir las variables area,
dist y distm por sus logaritmos en base10 y volver a crear un data frame?
Muchas gracias
Saludos
Susana
[[alternative HTML version deleted]]
2002 Jan 09
2
How to obtain the series of residuals from fracdiff
Hi
I'm using fracdiff package to estimate the parameters of a
fractionally-differenced ARIMA (p,d,q) model, and it works fine, but I wanted
to have also the filtered series and the series of residuals.
I understand these are calculated in the subroutine fdfilt, in the program
fdcore.f, but I can't manage to get them out.
Any suggestion would be much appreciated
Thanks
Susana Barbosa
2009 Aug 01
2
Add columns in a dataframe and fill them from another table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put these probabilities
in my dataframe mydata(given after the prob table).
Prob of States
Changes State1 State2 State3 State4
a
2018 Feb 10
0
Optim function returning always initial value for parameter to be optimized
On 02/10/2018 06:00 AM, r-help-request at r-project.org wrote:
> Did you check the gradient? I don't think so. It's zero, so of course
> you end up where you start.
>
> Try
>
> data.input= data.frame(state1 = (1:500), state2 = (201:700) )
> err.th.scalar <- function(threshold, data){
>
> state1 <- data$state1
> state2 <- data$state2
>
2011 Dec 06
1
making changes to global variables in functions
I'm trying to write a function that takes several objects with many
different attributes and then changes their attributes. So what I wanted to
happen in the simplified example below is for the function to change the
attributes of the objects state1 and state2 that are passed to it. But
because stateA and stateB are local, this isn't working. Are there any easy
solutions?
e.g., if I could
2007 Feb 15
2
How to add obj to a list?
Hello everybody!
I'm quite new using R and i'm trying to develope a function, but i have
a problem.
What i want to build is something like an objects vector. I have a list
with two tables, and after or next to them, I want to add more tables or
vectors to that list one by one. But i cannot find how to do it!
Does someone can help me?
I will be very grateful for any of your help!
2010 Jan 22
4
Extract R-squared from summary of lm
Dear all,
I cannot find to explicitly get the R-squared or adjusted R-squared from
summary(lm())
Thanks a lot!
[[alternative HTML version deleted]]
2007 Aug 19
3
Performance Tuning - ZFS, Oracle and T2000
Hi All,
We are currently in the process of testing Solaris 10 with ZFS and
Oracle and are running it on a T2000.
When checking performance statistics on the T2000, we notice that only
one thread of the CPU appears to be doing any of the processing.
Leaving all other threads seemingly idle.
Are there any tuning parameters that need to be set or changed when
running Oracle on T2000 using
2009 Apr 25
4
What is the 32 GB 2.5-Inch SATA Solid State Drive?
Does anyone know about this device?
SESX3Y11Z 32 GB 2.5-Inch SATA Solid State Drive with Marlin Bracket
for Sun SPARC Enterprise T5120, T5220, T5140 and T5240 Servers, RoHS-6
Compliant
This is from Sun''s catalog for the T5120 server. Would this work well
as a separate ZIL device for ZFS? Is there any way I could use this in
a T2000 server? The brackets appear to be
2006 Jul 31
3
LSI RAID Configuration Steps on T2000
Guru''s,
Is anyone shar with me the steps to configure hardware RAID in T2000
server (LSI drivers) and use rootdisk hardware mirror --
Thanks a lot!
Malahat Qureshi Ph.D. (MIS)
Email: malahatq at hotmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Apr 26
5
Correlaciones parciales
Muy buenas,
quiero calcular correlaciones de Pearson entre dos variables (a,b)
teniendo en cuenta una tercera (c). Para ello estoy usando una función
llamada "pcor.test" (http://www.yilab.gatech.edu/pcor.html), que en
realidad no está en ningún paquete de R, que yo sepa. ¿Alguien conoce
una función similar en alguna librería de R? Por otro lado, para ver
si me cuadraban los resultados,
2009 Jul 31
1
Fill dataframe from a table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below
Prob of States
Changes State1 State2 State3 State4
A Pa1 Pa2 Pa3 Pa4
B Pb1 Pb2 Pb3 Pb4
C Pc1 Pc2 Pc3 Pc4
D Pd1 Pd2 Pd3 Pd4
and I have a dataframe called
2005 May 24
1
rsync incorrectly deletes files ?
rsync -e 'ssh -x' --log-format="%o /%n %b" -tLr --delete --files-from=files-to-sync --exclude-from=files-to-exclude user@host:/ /temp/
del. /etc/mail/spamfilter/mx1/whitelist.conf 0
del. /etc/mail/spamfilter/mx1/blacklist.conf 0
recv /etc/mail/spamfilter/mx1/ 0
recv /etc/mail/spamfilter/mx1/blacklist.conf 211
recv /etc/mail/spamfilter/mx1/whitelist.conf 924
Why does rsync
2011 Jul 27
1
To Merge or to use Indicator Variables?
Greetings all,
I have two sets of data that I would like to investigate. The first is
gene/genome related data given different 'cell-states'. The second set of
data is relates the genes to a biological pathway. /(I think in pictures so
here goes.)/
*dataframe1*
gene, cell-state1, cell-state2
gene1, x1, y1
gene2, x2, y2
gene.x, ..., ...
*dataframe2*
pathway1, gene-x1, gene-x2, ...
2011 Apr 20
2
Rcmdr vs SPSS
An embedded and charset-unspecified text was scrubbed...
Name: nem el?rhet?
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110420/4913654b/attachment.pl>
2015 Jul 28
2
función cantidad mayor de valores
Hola Javier,
Intenta los siguientes cambios
g4 <- function(codigo_llega, n_caracteres){
codigo_llega <- as.character(codigo_llega)
if(n_caracteres == 6) res <- substr(codigo_llega, start=0, stop=4)
else res <- codigo_llega
res
}
g4 <- Vectorize(g4)
x <- c('Jorge Velez','Javier Marcuzzi','Daniel Merino','Susana deus
Alvarez', 'Carlos