similar to: Help with assigning a value based on existing numbers

Displaying 20 results from an estimated 3000 matches similar to: "Help with assigning a value based on existing numbers"

2012 Feb 16
1
how to get r-squared for a predefined curve or function with "other" data points
hello mailing list! i still consider myself an R beginner, so please bear with me if my questions seems strange. i'm in the field of biology, and have done consecutive hydraulic conductivity measurements in three parallels ("Sample"), resulting in three sets of conductivity values ("PLC" for percent loss of conductivity, relative to 100%) at multiple pressures
2006 Mar 24
2
How to avoid for or while loops when one index depends on another
Dear R Community, I'm trying to exploit the elegance of R by doing the following pseudocode routine without a WHILE or FOR loop in R: for i = 1 to length-1 for j = (i+1) to length print a[i], a[j] That is, I want i and j to be the indices of a half-matrix 1 2, 1 3, 1 4, ..., 1 length, 2 3, 2 4, ..., 2 length, 3 4, ..., 3 length 1. Can this be done with the 'whole
2005 Nov 30
1
likelihood ratio tests using glmmPQL
I am analysing some binary data with a mixed effects model using glmmPQL. I am aware that I cannot use the AIC values to help me find the minimum adequate model so how do I perform likelihood ratio tests? I need to fix on the minimum adequate model but I'm not sure of the proper way to do this. Thank you very much, Elizabeth Boakes Elizabeth Boakes PhD Student Institute of Zoology
2012 Jan 27
1
Bivariate Partial Dependence Plots in Random Forests
Hello, I was wondering if anyone knew of an R function/R code to plot bivariate (3 dimensional) partial dependence plots in random forests (randomForest package). It is apparently possible using the rgl package (http://esapubs.org/archive/ecol/E088/173/appendix-C.htm) or there may be a more direct function such as the pairplot() in MART (multiple additive regression trees)? Many
2008 Mar 14
1
smoothScatter
Hi, I have been trying to plot density plots using the example on: http://addictedtor.free.fr/graphiques/graphcode.php?graph=139 I used to use this function, but I cannot get any old code or even the example to work. library("geneplotter") require("RColorBrewer") x1 <- matrix(rnorm(1e4), ncol=2) x2 <- matrix(rnorm(1e4, mean=3, sd=1.5), ncol=2) x <-
2005 Nov 24
1
AIC in lmer when using PQL
I am analysing binomial data using a generalised mixed effects model. I understand that if I use glmmPQL it is not appropriate to compare AIC values to obtain a minimum adequate model. I am assuming that this means it is also inappropriate to use AIC values from lmer since, when analysing binomial data, lmer also uses PQL methods. However, I wasn't sure so please could somebody clarify
2014 May 20
2
Need help with [virt net-create]
Is it possible to configure 2 virtual nics in the same ip range ? Here is what I am trying. **** This works **************** cat nw1.xml <network> <name>nw1</name> <domain name='nw1' /> <forward mode='nat' dev='eth2'/> <ip address='192.168.101.1' netmask='255.255.255.0'> <dhcp> <range
2002 Jun 17
3
Help
Can you please tell me the minimum system spec for R on a windows machine? Thanks _______________________________________ Matthew Longley IT Administrator Zoological Society of London Regent's Park London NW1 4RY Charity No: 208728 Tel: 020 74496412 Fax: 020 74496294 email: Matthew.Longley at zsl.org WWW: www.zsl.org _______________________________________
2010 Dec 02
1
rpart results - problem after oversampling
Hi all, I am trying to predict a target variable that takes values 0 or 1 using the rpart command. In my initial dataset I have few positive observations of the target variable; therefore I have oversampled the rare event by a multiple of 6 (i.e. from 762 to 4572). However, in my results, I end up with a number of positives in one of the terminal nodes that is not divisible by 6. As I have the
1998 Jul 01
1
No subject
Douglas Bates wrote: >From 0.62 onward you should not have to create a symbolic link in >/usr/local/bin. It should be that you can run > cd $RSOURCE > ./configure --prefix=/usr/local > make install >and you will end up with the R script installed in /usr/local/bin and >all the files needed to run R in /usr/local/lib/R. > >Can you tell what the prefix is set to after
2009 Sep 23
1
Numerical integration problem
Hi there I'm trying to construct a model of mortality risk in 2D space that requires numerical integration of a hazard function, for which I'm using the integrate function. I'm occasionally encountering parameter combinations that cause integrate to terminate with error "Error in integrate... the integral is probably divergent", which I'm not sure how to interpret. The
2004 Jan 27
4
WARNING. You tried to send a potential virus or unauthorised code
The Star Internet anti-virus service, powered by MessageLabs, discovered a possible virus or unauthorised code (such as a joke program or trojan) in an email sent by you. This email has now been quarantined and was not delivered. Please read this whole email carefully. It explains what has happened to your email, which suspected virus has been caught, and what to do if you need help. To
2010 Jun 01
2
Issue with assigning text to matrix
My issue relates to adding text to a matrix and finding that the text is converted to a number. This is the section of code I'm having trouble with: # First, I load in a list of names from a .csv file to 'names' names <- read.csv(file("Names.csv")) # Then I define a matrix which will be populated with various test statistics, with several rows for each entry in
2020 Oct 14
3
Changing IMAP separator - does it break things?
14. 10. 2020 v 11:51, Victor Sudakov <vas at sibptus.ru>: > >> I had to do it with 10-20 live users and it went fine, nobody noticed >> anything (I made the change in the night hours just to be sure >> though). I had to go down and fix some erratic folder names that >> resulted from the botched separator handling on some macOS Mail >> accounts. > >
2005 Jan 24
3
Roaming Profiles -- Problem Rapidly Switching Users
Does anybody have any insight into what could be causing this strange problem? I have Samba 3.02 (sorry, can't upgrade right now). My Linux box is running Mandrake 10 Official. I have Samba configured as a PDC. I can successfully add machines to my Domain -- and log on as ANY user from ANY machine. However on a SINGLE MACHINE, when I log on as USER_1 and access that user's roaming
2007 May 24
6
Sum per hour
Dear all, I have a list of precipitation record and a list of time I would like to sum them up per hour, or per day. Does such a function exist ? example: time<-c("2000-10-03 14:00:00","2000-10-03 14:10:00","2000-10-03 14:20:00","2000-10-03 15:30:00","2000-10-03 16:40:00","2000-10-03 16:50:00","2000-10-03
2012 Mar 02
3
subseting a data frame
HI, this is my problem I want to subset this file df, using only unique df$exon printing the line once even if df$exon appear several times: unique(df$exon) will show me the unique exons If I try to print only the unique exon lines with df[unique(df$exon),] -this doesn't print only the unique ones :( could you help? thanks Nat exon size chr start
2005 May 23
7
Cisco 7960 & v7.4
I have recently upgraded my firmware from v6.3 to v7.4. Now when the phone is booted or rebooted, the initial screen "Initializing Vlan" takes forever to initialize before it initializes IP. Any ideas/Thoughts? (Trying not to Revert back to v6.3). -C -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Feb 07
5
Creating a correlation Matrix
Hi all: I have a question on how to go about creating a correlation matrix. I have a huge amount of data....21 variables for 3471 times. I want to see how each of the variables correlate to each other. Any help would be appreciated, including which package and which functions I should use to do this. Thanks, Jessica Higgs Masters Student Department of Meteorology Penn State University
2008 Feb 12
3
regular expression for na.strings / read.table
Dear all, I am working with a csv file. Some data of the file are not valid and they are marked with a star '*'. For example : *789. I have attached with this email a example file (test.txt) that looks like the data I have to work with. I see 2 possibilities ..thast I cannot manage anyway in R: 1-first & easiest solution: Read the data with read.csv in R, and define as na strings