Displaying 20 results from an estimated 1000 matches similar to: "Random Forest and Correlated Fields"
2012 Oct 16
2
List of Levels for all Factor variables
Hi,
I want to get a clean succinct list of all levels for all my factor variables.
I have a dataframe that's something like #1 below. This is just an example subset of my data and my actual dataset has 70 variables. I know how to narrow down my list of variables to just my factor variables by using #2 below (thanks to Bert Gunter). I can also get list of all levels for all my factor
2012 Oct 16
1
Problems with xlsx and rjava
Hi,
I keep getting the below error regarding rJava which is required by package xlsx (I have used it in the past to directly import data from Excel 2010).
I was on R version 2.15.0 when I was getting this error this morning. So I upgraded to 2.15.1 but still the same problem. I tried unstalling and reinstalling xlsx and even rJava directly from the source as indicated here:
2013 Apr 22
2
RODBC --How do you set up the connection so pwd is blank but driver-specific data source dialog box pops up after
Hello,
I want to leave pwd blank (to comply w/ company security protocol) and just be prompted by the driver-specific data source dialog box to enter the password after. But for some reason it is not working.
R Version: "R version 2.15.1 (2012-06-22)"
R Studio Version: 0.97.312
OS: Windows 7
library(RODBC)
##HERE IS THE CODE THAT DOES WORK
##my DSN, UID, PWD is entered something like
2013 May 17
0
rggobi error
Hi R Expert Community,
I need your help in getting rggobi and ggobi to work.
I tried running ggobi under Rattle's Explore tab and interactive option but got an error. I then tested library('rggobi')and noticed I get the same error. So it's not Rattle specific.
I have GGOBI and rggobi installed on my machine. Below is the info.
At first I got Error 'A' below. Then I
2013 Apr 26
1
Stratified Random Sampling Proportional to Size
Hello R Experts,
I kindly request your assistance on figuring out how to get a stratified random sampling proportional to 100.
Below is my r code showing what I did and the error I'm getting with sampling::strata
# FIRST I summarized count of records by the two variables I want to use as strata
Library(RODBC)
library(sqldf)
library(sampling)
#After establishing connection I query the data
2013 Jan 15
1
readHTMLTable (XML package)
Hi,
I am using XML::readHTMLTable and getting the below error. Does anyone know why? Does this function not work with https? I didn't see anything in help about that.
> library(XML)
> wampage<-readHTMLTable('https://hr-workforce-analytics.llnl.gov/wf_pi_pop.html',1)
Error in htmlParse(doc) :
File https://hr-workforce-analytics.llnl.gov/wf_pi_pop.html does not exist
Dan
2013 Nov 12
0
geom_abline does not seem to respect groups in facet_grid [ggplot2]
Just trying to understand how geom_abline works with facets in ggplot.
By way of example, I have a dataset of student test scores. These are in a data table dt with 4 columns:
student: unique student ID
cohort: grouping factor for students (A, B, . H)
subject: subject of the test (English, Math, Science)
score: the test score for that student in that subject
The goal is to compare
2012 May 04
2
Binomial GLM, chisq.test, or?
Hi,
I have a data set with 999 observations, for each of them I have data on
four variables:
site, colony, gender (quite a few NA values), and cohort.
This is how the data set looks like:
> str(dispersal)
'data.frame': 999 obs. of 4 variables:
$ site : Factor w/ 2 levels "1","2": 1 1 1 1 1 1 1 1 2 2 ...
$ gender: Factor w/ 2 levels "0","1":
2006 Feb 20
1
extract month from date column
Hi,
I have this rails query:
@birthdays = Birthday.find :all,
:conditions => ["user_id = ? and
birthdate = ''2006-02-01'', @user_id],
:limit => @birthday_pages.items_per_page,
:offset => @birthday_pages.current.offset
You can ignore the user_id, limit and offset part.
2009 May 27
2
Factor level with no cases shows up in a plot
Consider this data structure (df1) ...
Group Year PctProf FullYr
1 Never RF 2004 87 88
2 Cohort 1 2004 83 84
3 Cohort 2 2004 84 86
4 Cohort 3 2004 87 87
5 Cohort 4 2004 73 74
6 Never RF 2005 85 86
7 Cohort 1 2005 81 82
8 Cohort 2 2005 81 81
9 Cohort 3 2005 78 79
10 Cohort 4 2005 72 74
11
2012 Jun 04
1
Chi square value of anova(binomialglmnull, binomglmmod, test="Chisq")
Hi all,
I have done a backward stepwise selection on a full binomial GLM where the
response variable is gender.
At the end of the selection I have found one model with only one explanatory
variable (cohort, factor variable with 10 levels).
I want to test the significance of the variable "cohort" that, I believe, is
the same as the significance of this selected model:
>
2006 Jan 06
0
date_select and sessions
i am using date_select to allow someone to select their birthdate in a
form. however date_select uses 3 wierd labels in the forms like
follows:
<select name="user[birthdate(1i)]">
<option value="1940">1940</option>
<option value="1941">1941</option>
.
and then the month is user[birthdate(2i)] and so on. My issue is i
dont know the
2006 Jan 07
4
set date with date_select
when retreiving a date from a DATETIME field in a database, is there a
way to set the date to the value of the DB in the view? It seems to
always default to the current date...
if I have a field called birthdate in the users table and i do
@user = User.find(@params[:id])
in my view i have a <%= date_select ''birthdate'',''user'' %>
but dont know how to
2009 Mar 02
0
Implementing conditional read-only attributes of ActiveRecord objects
Hello,
my goal is to implement the option of specifying a condition in
attr_protected, attr_readonly and possibly other attribute methods in
ActiveRecord objects.
Rationale (example):
class User < AR:Base
# User should not be able to modify fields any more once they have
been verified
attr_readonly :firstname, :lastname, :gender_id, :birthdate, :if
=> :passport_verified?
# ...
end
2006 Nov 02
0
DB: class to multiple rows mapping (aka rails 'osproperty')
Hi,
Has anyone implemented some sort of automatic class to dynamic table
mapping ?
The idea is to have a single table capable of storing various unrelated
classes. Some sort of Extreme polymorphism.
I''ve used this with other languages. E.g. osproperty in Java. The idea
is the following
In the DB
create table dynamicobjects (
id int,
object_type varchar(255),
key_name
2012 Sep 10
0
More help need on Von Bertalanffy Growth Curves
Howdy,
Last week I got some great help on why I was getting an error code when trying to run this model, thanks everyone! I was able to get the code up and running beautifully for several data sets. Now I am getting different errors with this new data set. I can't figure out why, I have more data points with this species, and it is ordered exactly the same as the other species I have been
2012 Mar 11
1
Samba Print Share Problem
I had my samba printer shares working after many hours of struggling
with the samba.conf file. I was happy.
Now the printer shares have quit working. I checked the yum log to see
if anything had been changed. Nothing applicable seems to have been
changed.
I've been surfing the net for the last couple of days trying to find a
solution to the problem but I find many outdated and
2009 Feb 20
3
mean over previous cells
Dear RUsers,
I guess this is an easy question for someone a little familiar with
programming...(which I am not)...
I've got 2 colummns, one shows just dates(SST_date, Class 'Date' num), the
other one shows the SeaSurfaceTemperature (SST, num) at that certain date.
SST_date SST
2008-01-01 22.2
2008-01-02 21.8
2008-01-03 22.8
2008-01-04 22.9
2008-01-05 23.1
2008-01-06 23.2
...
2012 Jan 28
1
Samba Printer Share Access Denied
CentOS 6.2
[mlapier at mushroom ~]$ uname -a
Linux mushroom.patch 2.6.32-220.4.1.el6.i686 #1 SMP Mon Jan 23 22:37:12
GMT 2012 i686 i686 i386 GNU/Linux
[mlapier at mushroom ~]$
Applicable sections of smb.conf:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
security = user
2006 Dec 15
4
Why won't Rails update my object attributes?
Here''s the issue: When I submit a form for updating,
@person.update_attributes doesn''t work. But the next nested clause for
updating images DOES work. How is that possible? However no matter
what I do the Person object will not change its attributes.
def edit
@person = Person.find(params[:id])
if request.post?
@person.update_attributes(params[:person])