search for: variable

Displaying 20 results from an estimated 54922 matches for "variable".

Did you mean: variables
2000 Jan 04
0
Stepwise logistic discrimination - II
I apologise for writing again about the problem with using stepAIC + multinom, but I think the reason why I had it in the first place is perhaps there may be a bug in either stepAIC or multinom. Just to repeat the problem, I have 126 variables and 99 cases. I don't know if the large number of variables could be the problem. Of couse the reason for doing a stepwise method is to reduce this number. Anyway, after getting the error message : " arguments imply differing number of rows: 1, 126", I decided to run the same procedu...
2010 Aug 03
1
adding FORTRAN code to a package
..... WARNING Foreign function calls without 'PACKAGE' argument: .Fortran("cov1", ...) See the chapter 'System and foreign language interfaces' of the 'Writing R Extensions' manual. * checking R code for possible problems ... NOTE acfMod: no visible binding for global variable 'top' acfMod : onOK: no visible binding for global variable 'top' acfMod: no visible binding for global variable 'buttonsFrame' aggConv: no visible binding for global variable 'top' aggConv : onOK: no visible binding for global variable 'newDataSet' aggConv :...
2010 Aug 04
2
regression analysis with interactions
Hello, I have got a linear model that looks like this: lm(criterion ~ variable.A*variable.a + variable.B*variable.b + variable.C *variable.c) The output computed with stdCoeff() seems to be all right, but it does not show the coefficients of the interaction of the first pair of variables. Instead, it shows "NA": (Intercept) NA...
2012 Nov 01
0
[LLVMdev] printing debug info
Hi, According to the LLVM website, the pass-print-dbginfo should print : Pass that prints instructions, and associated debug info: * source/line/col information * original variable name * original type name But the following is the output I get. It has no source file names. It does not print any instructions. It only prints function and variable names: function main : ; %2 is variable argc of type int declared at :10 ; %3 is variable argv of type declared at :10 ; %N...
2009 Mar 20
2
struggling with pairlists
I would like to create a vector of pairlist (flag, binary_value) like: (variable ="TrendOff", value = 0) (variable ="MOdwt", value = 1) (variable ? "ZeroPadding", value =1) ................................................ I tried the following syntax but the emcompassing list (that I called "flags") is not made up of pair...
2013 Feb 26
2
Converting code to R Question
...to R. My background is in SAS/SPSS so the vectorization is new to me and I'm trying to learn how to NOT use loops...or use them sparingly. I'm wondering what the most efficient to tackle a problem I'm working on is. Below is an example piece of code. Essentially what it does is set a variable to zero, loop through item responses, and add one if a condition is met. For example, if item one was responded as a 1 then add one to the final variable. If item two was responded as a 2 then add one to the final variable. I have to do this for five scales with each scale having 6 items half of...
2012 Apr 02
23
[PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror
...rror tools/libvchan: fix build errors caused by Werror in io.c tools/blktap2: remove static string table from header file tools/blktap2: fix build errors caused by Werror, remove blkif_op_name tools/blktap2: remove unused labels tools/blktap+blktap2: fix build errors caused by Werror, remove unused variables tools/blktap/drivers/blktapctrl.c | 19 ++++++----------- tools/blktap/drivers/block-aio.c | 5 ---- tools/blktap/drivers/block-qcow.c | 8 +++---- tools/blktap/drivers/block-qcow2.c | 9 ++++---- tools/blktap/drivers/block-ram.c | 7 --...
2008 Dec 09
4
Pre-model Variable Reduction
Hello All, I am trying to carry out variable reduction. I do not have information about the dependent variable, and have only the X variables as it were. In selecting variables I wish to keep, I have considered the following criteria. 1) Percentage of missing value in each column/variable 2) Variance of each variable, with a cut-off value. I...
2006 Jan 23
5
Variable Scoping Problem
I am having some problems with variable scoping. I need to be able to set a variable that is accessable by other methods within the class (or instance) (i.e not global). An example is 2 pages that change a class variable: class AjtestController < ApplicationController def initialize @@variable = "init" end def sho...
2010 Aug 25
18
Puppet hangs
Hello, we have one puppet server managing approx servers, all FreeBSD. The problem is that the puppet clients all hangs, one by one, eventually. They will run for anything between an hour up to a week. But eventually the all hang. We really like puppet and want to keep using it. But the way it is now is completely unusable. We''ve tried many versions, from 24.x, and now 2.6.1rc1. But
2011 Nov 16
11
What is the offical variable scope best practice?
I read the guide at http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others'' mail, i am a little confused now, below is my understanding: 1. top scope only refers to site.pp, not include node definitions and facts. 2. in puppet class, using variables not local, must specify the namespace, like $class::variable, if it''s a top scope variable or a fact variable or a variable in node definition, using $::variable. 3. in template erb files, always using scope.lookupvar("class::variable") to get the value, even if the erb and...
2006 Apr 22
7
Instance variables versus local variables
This novice coder roughly understands the difference between instance and local variables thanks to David Black''s excellent book, but I''m still unclear as to when and why a either is more desirable to use. In general, I use instance variables in my controller and local in my views, but I''m not sure as to why or if this is correct. Thanks Joe Kowalski
2010 Aug 06
1
Error on random forest variable importance estimates
Hello, I am using the R randomForest package to classify variable stars. I have a training set of 1755 stars described by (too) many variables. Some of these variables are highly correlated. I believe that I understand how randomForest works and how the variable importance are evaluated (through variable permutations). Here are my questions. 1) variable imp...
2011 Jul 15
2
Convert continuous variable into discrete variable
Dear all, I have a continuous variable that can take on values between 0 and 100, for example: x<-runif(100,0,100) I also have a second variable that defines a series of thresholds, for example: y<-c(3, 4.5, 6, 8) I would like to convert my continuous variable into a discrete one using the threshold variables: If x is between 0...
2009 Apr 20
7
Fitting linear models
I am not sure if this is an R-users question, but since most of you here are statisticians, I decided to give it a shot. I am using the lm() function in R to fit a dependent variable to a set of 3 to 5 independent variables. For this, I used the following commands: >model1<-lm(function=PBW~SO4+NO3+NH4) Coefficients: (Intercept) SO4 NO3 NH4 0.01323 0.01968 0.01856 NA and >model2<-lm(function=PBW~SO4+NO3+NH4+Na+Cl)...
2019 Dec 27
2
AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?
Just trying out a node agi package (https://github.com/sergey12313/ts-agi/ , and it wasn't behaving as I expected, but when turning on agi debug, it looks like it might be Asterisk (using 17.1.0) This works as expected <Local/1000 at default-00000020;2>AGI Rx << SET VARIABLE myVar "Hello World!!!" <Local/1000 at default-00000020;2>AGI Tx >> 200 result=1 <Local/1000 at default-00000020;2>AGI Rx << GET VARIABLE myVar <Local/1000 at default-00000020;2>AGI Tx >> 200 result=1 (Hello World!!!) But GET FULL VARIABLE just returns...
2012 Mar 10
1
Treat Variable as String and a String as variables name
Dear all. I am having ten variables (let's call the four of them as Alpha, Beta, Gamma and Delta.....) For each variable I have to print around 100 (plots). E So far I was copying paste the code below many times. pdf(file="DC_Alpha_All.pdf", width=15) # First Variable is treated as string plot_dc_for_multiple_k...
2008 Nov 12
5
function that uses a variable name as the parameter
Hello dear R people! Several times it occurred to me that a function that uses a variable name as a parameter would be helpful, but I did not find out how to write such a function. I have experience in several programming language, but I did not come across a helpful trick... What I want to have is... a <- 12 # starting value add <- function(variable,increment) { variable <...
2014 Oct 13
16
[LLVMdev] RFC: variable names
I’d like to discuss revising the LLVM coding conventions to change the naming of variables to start with a lowercase letter. This should not be a discussion on the pain of such a transition, or how to get from here to there, but rather, if there is a better place to be. My arguments for the change are: 1. No other popular C++ coding style uses capitalized variable names. For insta...
2010 Feb 22
2
Re-assigning variables stored as character strings in another variable
Is there any way to get the last line of this code to double the contents of a and b without naming them directly? #create variables a and b a<-5 b<-10 #store variable names a and b in variables c and d c<-"a" d<-"b" e<-c(c,d) #loop through both variables for (i in e){ #print the numbers five and ten using only the variables c and d #this line works fine print(eval(parse(text=i)))*2 #re-a...