Quantcast
Channel: Statalist
Browsing all 65033 articles
Browse latest View live

Ranking observations based*on other variables.

Dear all, I have data on rating performed by students. For instance, each student had to rate the height of five bars. I would like to re-code my bar heights variable such that the bars that received...

View Article


Impossible values in Stata example Dataset

Looking for an example dataset to introduce Stata to some students, I've found the highschool.dta (or multistage.dta) dataset in the examples available online at Stata Press (...

View Article


A model to compare two groups over multiple time points?

I am looking at the differences in my dependent variable caused by an intervention over time. I have three time points - one at time of intervention, a medium time point and final one. I want to...

View Article

Please help with pred values graphing

Cancelled post.

View Article

Please help with pred values plotting

Hello Brainstrust. Sorry this is a repost. I've just read I have to use my real name. Also I have read the manual and searched google for the answer but no joy. Please bear with me. I'm a real beginner...

View Article


Simulating new data with an available small data

Hi everyone, need some help with simulating data. I have a small data with 10 numbers of a given variable and need to simulate 100 new numbers that will be similar to the 10 original (which are not...

View Article

NHANESIII data in Stata

Unlike continuous NHANES (1999-2016), NHANESIII survey and linked mortality follow-up data are not available at cdc.gov as SAS transport files (easily read into Stata).There are several steps to...

View Article

Beta estimation using a subset of data

Hi! I'd like to calculate beta using 5 years worth of quarterly data. At the end of each year t, beta is estimated using quarterly data from 5-year period covering year t-4 through t. Please find...

View Article


Combine regression coefficients in one table

Hi! I'm trying to rebuild the following regression model, but unfortunately I'm having some problems. What the regression tries to identify is if a change in regulation has influenced market quality....

View Article


esttab, @span and the additional column introduced by...

Hi, I'm printing my regression tables using esttab and TeX. mgroups() allows me to create column headers combining multiple columns. In particular when I use Code: prefix(\multicolumn{@span}{c}{)...

View Article

Instrumental Variables and Endogeneity

If researchers have difficulty in finding instrumental variables, and the instrument's strength plays a crucial role in ensuring bias resulting from endogeneity is mitigated, could you just create a...

View Article

mean command with pweight & vce() & over () options

Hello, I am trying to use mean command with pweight & vce() & over() options, but I get an error message. "factor variables and time-series operators not allowed" Code: mean he_bmi...

View Article

Regular expression operators

Dear Statalisters, Do you know if Stata or Mata supports POSIX character cases or Perl‐Style meta-characters in its regular expression functions? A Stata FAQ acknowledges these operators but it is...

View Article


Oaxaca command with svy option / decomposition analysis

Hello, I am doing decomposition analysis with a survey data, and I am stuck. I need to use svy to estimate numbers at the population level, so I use the below code. Code: use knhanes_0514, clear svyset...

View Article

Invalid syntax and no table displayed in Weave

Dear all: Could you please have a look at these codes below to see what is wrong? This is an example of doing a simple regression and exporting the results into HTML and PDF files with Weaver in Stata...

View Article


Controlling Connected Graph Tick Location for Monthly Data with Yearly Label

Hopefully a simple question re: a connected line graph. I've got monthly data for one Y variable from May 2013 to July 2016, and I would like to have the x axis have ticks indicating the end/beginning...

View Article

Purging observations by subgroup

I'm sure there is a solution already on the forum about this but I wasn't able to find anything with my searches... I have a dataset of lab values for which I have generated a % change since baseline...

View Article


Data manipulation question

I'm having problem with data manipulation, but I don't know how to start. I'm using STATA 12.0 for MAC. My dataset looks like this: year firm_id investor_id gamma beta zeta sic code 2014 1 1 .1 .21 .3...

View Article

Entering a P value on a forest plot

I am inputing results from studies onto a forest plot, how do I obtain the overall P value to enter into the tool? I would be grateful . Thank you

View Article

limit y axis after using adjustrcspline

Dear Statalister, I made a model containing two restricted cubic splines and 2 dichotomous variables using linear regression (commad regress). * example of my model regress logkpa i.wave2 alcsp*...

View Article
Browsing all 65033 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>