similar to: pdf() and histogram() in function call

Displaying 20 results from an estimated 1200 matches similar to: "pdf() and histogram() in function call"

2011 Jun 21
1
Setting up list of many equations for systemfit
Dear List Members,I am trying to set up a large system of equations and I am trying to find a simple way to set up the list command under the package system fit. Here is the example from system fit and what I am trying to do: EQ1 <- Y1 ~ X1 + X2 + X4EQ2 <- Y2 ~ X2 + X3EQ3 <- Y3 ~ X2 + X3 + X4EQ4 <- Y4 ~ X1 + X3 + X4eqSystem <-list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)
2012 Apr 01
1
indexing in a function doesn't work?
Hello, I've written a small function that's supposed to save me some time, and it's ending up killing it- the intention is to iteratively subset a dataset fram on framevec, fit a model (either lm or nls depending on type) and return the r2 or AIC from the model, respectively. Although as far as I can tell in my code the plots are dependent on the fit of the model to the data and the
2007 Mar 19
1
Forms lost focus in KDE
Hello, I'm testing a simple delphi application that have 3 forms. >From FORM1 (the main form) I press a button to show FORM2, then from FORM2 I press a button to show FORM3, when I close FORM3, FORM1 becomes focused instead of FORM2. Every time you close a form or a dialog the application main form becomes the active one. This only happend in KDE, allowing windows manager to control the
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
Is there a way to apply paste to?list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)?such that I don't have to write form1=EQ1 for all my models?(I might have a list of 20 or more)? I also need the EQs to read the formulas associated with them. For example, below, I was able to automate the name assignment but I could not figure out how to?to set up the list using?paste or other
2011 Jun 28
2
How do I output all the R-squares of an SUR? summary(fitSUR$eq[[1:4]])$r.squared does not work
Greetings R Users, I have a system of equations for which I would like to output all the R-squares. Assume there are four equations in my system, the only way I found to output all the R-squares is by calling them out one by one as this: summary(fitSUR$eq[[1]])$r.squared summary(fitSUR$eq[[2]])$r.squared summary(fitSUR$eq[[3]])$r.squared summary(fitSUR$eq[[4]])$r.squared But isn't there a
2013 Feb 26
1
problem with nested loops
Each of the data sets contains monthly observations on price indices for 7 countries. I use the fitted values from reg1 in the reg2 model. The interior loop executes without error as long as I explicitly specify the data set, i.e. data=dat70. However the code fails to execute if I specify the model in the form of the commented line, i. e reg1 <-dynlm(form1,data=Dnames[j]) I get the following
2006 Jan 12
5
file_column preview in multistage forms
i have a 2 step form which contains 1 file_column field. The second form is just "This is how your post will look" kind of form and the user can click Edit (to take them back to form1) or Submit. If the user clicks edit it takes them back to the first form with fields populated. I have it working with all text fields, I just dont know how to do this with file_column field (showing the
2007 Sep 03
1
unnumbered priorities
Hi: When should we use "unnumbered priorities"(n) in extensions.What is the different between these 2 forms of extensions.conf? and ,Are both true? extensions.conf: form1: [Conferencerooms] exten => 333,1,Answer exten => 333,n,meetme(8000|cim) exten => 333,n,playback(vm-goodbye) exten => 333,n,hangup form2: [Conferencerooms] exten => 333,1,Answer exten =>
2012 Mar 25
2
Modal dialogs getting out of focus
Hello, it is really nice to be here with the wonderful Wine community. Modal window gets out of focus if minimized and blocks any actions in the main window. I've attached and example created in Delphi called Project1. It has Form1 window with action button which opens a modal dialog called Form2. The main idea is when opened Form2 to be always on top and to be impossible to hide it behind
2007 Jul 14
2
Using Helpers inside a Controller
I want to use helpers inside a controller method for an AJAX application. After the page is loaded and displayed, there will be an asynchronous javascript request to load additional resources such as html forms and other data. The controller which handles the request will collect the resources and send them back in json format. def get_resources data=Hash.new data[:form1]=form_helper1()
2008 Aug 12
1
[LLVMdev] A case where llvm created different cfg for same code
Hi, The following two segments of code are actually the same, but llvm created different cfg for them. Form1: 1 #define N 10 2 int test(int A[N][N]) 3 { 4 int i, j; 5 int result =0; 6 for(j=0; j+2<N; ++j) { 7 //for(i=0; i<j && i+j+1<N; i++) { 8 for(i=0; i<j && i<N-j-1; i++) { 9 A[i+j+1][j] = A[j + 2][j-i] + i; 10 } 11 } 12 13 for (i=0; i<N-2; ++i) 14 for (j=0;
2011 Nov 15
2
Regular expressions in R
Good afternoon list, I have the following character strings; one with spaces between the maths operators and variable names, and one without said spaces. form<-c('~ Sentence + LEGAL + Intro + Intro / Intro1 + Intro * LEGAL + benefit + benefit / benefit1 + product + action * mean + CTA + help + mean * product')
2007 Mar 31
1
Problem with S4 inheritance: unexpected re-initialization?
Dear all, To explain my problem I am attaching a demonstration package "myclasspkg": I have the following two S4 classes with similar inheritance: SubSubClassA <- SubClassB <- BaseClass SubSubClassB <- SubClassB <- BaseClass In R I am calling the following functions: > library(myclasspkg) > subA <-
2005 Aug 31
1
tcl/tk return problem
Hello, I'm very new in working with tcl/tk in R and have a problem which will probably sound silly to most of you. Here is the code I have problems with: readcelfiles <- function() { require(tcltk) tt <- tktoplevel() tkgrid(tklabel(tt,text="Choose a directory!")) OnOK <- function() { fileDir<-tclvalue(tkchooseDirectory()) data.raw <-
2006 Mar 09
7
how to make two forms on the same page???
I can get the forms to be displayed, but i want to have only one "create" button. i''ve tried everything i can think of... -- Posted via http://www.ruby-forum.com/.
2008 Apr 10
2
variable containing name of current module?
Does puppet export a variable containing the name of the module currently being processed? That is, if i''m reading the file "modules/ntp/manifests/whatever.pp", is there any puppet variable containing the string "ntp"? That''s the entire question --- here''s the context in case it helps: I have a wrapper function which implements a search path for
2008 Aug 12
0
[LLVMdev] A case where llvm created different cfg for same code
Hi, The following two segments of code are actually the same, but llvm created different cfg for them. Form1: 1 #define N 10 2 int test(int A[N][N]) 3 { 4 int i, j; 5 int result =0; 6 for(j=0; j+2<N; ++j) { 7 //for(i=0; i<j && i+j+1<N; i++) { 8 for(i=0; i<j && i<N-j-1; i++) { 9 A[i+j+1][j] = A[j + 2][j-i] + i; 10 } 11 } 12 13 for (i=0; i<N-2; ++i) 14 for (j=0;
2005 Sep 15
1
Javascript object literals -- prototype clash?
I''ve been playing with some ideas in getting the server-side Rails code and client-side AJAX stuff working nicely together while still providing fallback for non-js viewers. I''m using Behaviour + prototype. I was experimenting with using an object literal to define forms that would be inserted into appropriate divs. Why not just write the forms on the server side and unhide
2006 Apr 15
6
Two forms for two models - one page
I''ve got two forms for two different models on the same page. What I want is for one of the forms to return you to the same "new" page and not clear the data in the other form. I was hoping it would be as simple as render :action => ''new'' but no such luck. Any thoughts? Thanks, Adam -- Posted via http://www.ruby-forum.com/.
2006 Jan 17
1
Step.glm() question
Hi: I am using step.glm() as follows: form1 <- as.formula(haspdata ~ 1) lg.mod1 <- glm ( formula=form1, data=st.mtx, family=binomial , na.action=na.omit ) upper <- as.formula( haspdata ~ ( c5+childnm+educ1+incpov1+marital+msa+racekid+racemom+sex+shotcard )^2) lower <- as.formula(haspdata~1) lst <- list( upper=upper , lower=lower ) form1a.step <- step(lg.mod1, scope=lst