search for: regw

Displaying 7 results from an estimated 7 matches for "regw".

Did you mean: reg
2010 Sep 15
1
optim with BFGS--what may lead to this, a strange thing happened
Dear R Users on a self-written function for calculating maximum likelihood probability (plz check function code at the bottom of this message), one value, wden, suddenly jump to zero. detail info as following: w[11]=2.14 lnw =2.37 2.90 3.76 ... regw =1.96 1.77 1.82 .... wden=0.182 0.178 0.179... w[11]=2.14 lnw=2.37 2.90 3.76 ... regw =1.96 1.77 1.82 .... wden=0.182 0.179 0.180... w[11]=-0.51 lnw=2.37 2.90 3.76 ... regw=57.92 57.50 57.60 ... wden=0 0 0 0 ....1 0 0 0 which I use cat() to get (by the way, how to write from the resul...
2010 Sep 07
5
question on "optim"
Hey, R users I do not know how to describe my question. I am a new user for R and write the following?code for a dynamic labor economics?model and use OPTIM to get optimizations and parameter values. the following code does not work due to the?equation: ?? wden[,i]<-dnorm((1-regw[,i])/w[5])/w[5] where w[5]?is one of the parameters (together with vector a, b and other elements in vector w)?need to be estimated. if I delete the w[5] from the upper equation. that is: ?wden[,i]<-dnorm(1-regw[,i]) optim will give me the estimated parameters. but the paramter w[5] is a ke...
2006 Oct 27
3
Marginal Effect larger than 1 for a binary variable (summary.Design after lrm)
...sets of other years)like .98, . 97, with which I am not comfortable either. I suspect I did something wrong. This is part of my model: > resultt1 Logistic Regression Model lrm(formula = typemort ~ adv_binc_ratio + agem1 + regEA + regEM + regGL + regN + regNI + regNW + regS + regSW + regW + regWM + regY + repmethIO + repmethSR + no_dis_no_def + prevLO + prevOO + prevRP + owning + adv_binc_ratio * (repmethIO + repmethSR + no_dis_no_def + prevLO + prevOO + prevRP + owning) + agem1 * (repmethIO + repmethSR + no_dis_no_def + prevLO + prevOO + prevRP + owning...
2007 Jun 26
1
Marginal Effects of continuous variable in lrm model (Design package)
Dear all: When I am trying to get the marginal effects: summary(result7,adv_inc_ratio=mean(m9201 $adv_inc_ratio),adv_price_ratio=mean(m9201$adv_price_ratio), ...(SOME MORE CONTINUOUS AND DISCRETE VARIABLES BUT I AM NOT LISTING)... regW=c (0,mean(m9201$regW),1), regWM=c(0,mean(m9201$regWM),1)) It gave out an error message: Error in summary.Design(result7, adv_inc_ratio = mean(m9201 $adv_inc_ratio), : ranges not defined here or with datadist for adv_inc_ratio adv_price_ratio agem1 change2 yr1Libor yr1Libor1mtLag yr1Libor1yr...
2017 Jul 11
0
dplyr help
A better thanks would be to post the solution that met your needs... particularly since in spite of our efforts it appears we may not have understood your problem. A small sample data set generated with dput along with your code would be helpful in making sure others learn along with you. -- Sent from my phone. Please excuse my brevity. On July 11, 2017 12:56:45 AM PDT, Mangalani Peter
2017 Jul 11
2
dplyr help
Thank you very much for the support. I have just used the reshape library and my problem was solved. Kind regards, Peter -----Original Message----- From: Jeff Newmiller [mailto:jdnewmil at dcn.davis.ca.us] Sent: 10 July 2017 03:52 PM To: r-help at r-project.org; Mangalani Peter Makananisa; r-help at r-project.org Cc: Vito Ricci (vito_ricci at yahoo.com) Subject: Re: [R] dplyr help I am
2000 Mar 23
3
Tukey multiple comparisons
I am embarrassed to have to ask this but can anyone tell me of a Tukey multiple comparisons procedure available for R? I have looked through the search page, through the FAQ, and in the index of V&R (1999), and I still can't find such a thing. I see there is a ptukey function and a qtukey function but that is as far as I got. Do I need to roll my own? -- Douglas Bates